'use client'; import { useActionState } from 'react'; import { resetAction } from '@/lib/auth/actions'; import { idle } from '@/lib/auth/state'; import { CodeInput, Field, FormMessage, PasswordField, SubmitButton, TextInput } from '@/components/account/form'; export function ResetForm({ token }: { token: string }) { const [state, action] = useActionState(resetAction, idle); return (
{token ? ( ) : ( <> )} Set new password ); }