"use client"; import Link from "next/link"; import { useState } from "react"; import { ArrowLeft } from "lucide-react"; import { Card } from "@/components/ui/card"; import { Input } from "@/components/ui/input"; import { Button } from "@/components/ui/button"; import { resetPassword } from "./token"; export default function ({ params }: { params: { token: string } }) { const [error, setError] = useState(""); async function submit(data: FormData) { const { error } = await resetPassword(params.token, data); setError(error || ""); } return (
{" "}

Choose a new password

You can reset your password here.

{error &&

{error}

} Return to Login
); }