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>
  );
}
