Files
wishlify/web/src/app/(home)/page.tsx
2026-02-18 03:22:17 +03:00

18 lines
337 B
TypeScript

import { UserWishlists } from "@/app/(home)/UserWishlists";
import { cookies } from "next/headers";
import { redirect } from "next/navigation";
export default async function Home() {
const c = await cookies();
if (!c.has("token")) {
throw redirect("/login");
}
return (
<div>
<UserWishlists />
</div>
);
}