import { headers } from "next/headers" import { redirect } from "next/navigation" import { ForgotPasswordForm } from "@/components/auth/forgot-password-form" import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@/components/ui/card" import { auth } from "@/lib/auth" export default async function ForgotPasswordPage() { const session = await auth.api.getSession({ headers: await headers() }) if (session) { redirect("/dashboard") } return (
Forgot password Enter your email address and we'll send you a reset link
) }