Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

576 B
Raw Blame
import { Wordmark } from "@dub/ui";
import Link from "next/link";
import { redirect } from "next/navigation";
import WrappedPageClient from "./client";

export default async function WrappedPage(props: {
  params: Promise<{ slug: string; year: string }>;
}) {
  const params = await props.params;
  if (params.year !== "2024") {
    redirect(`/${params.slug}`);
  }

  return (
    <div className="relative flex flex-col items-center">
      <Link href={`/${params.slug}`}>
        <Wordmark className="mt-6 h-8" />
      </Link>
      <WrappedPageClient />
    </div>
  );
}