import { redirect } from "next/navigation"; import KarakeepLogo from "@/components/KarakeepIcon"; import ResetPasswordForm from "@/components/signin/ResetPasswordForm"; import { getServerAuthSession } from "@/server/auth"; interface ResetPasswordPageProps { searchParams: { token?: string; }; } export default async function ResetPasswordPage({ searchParams, }: ResetPasswordPageProps) { const session = await getServerAuthSession(); if (session) { redirect("/"); } const { token } = searchParams; if (!token) { redirect("/signin"); } return (
); }