TypeScript 61.9%
HTML 37.2%
SQL 0.7%
1import type { Metadata } from 'next';2import { ResetForm } from './reset-form';34export const metadata: Metadata = { title: 'Choose a new password', robots: { index: false } };56export default async function ResetPage({ searchParams }: { searchParams: Promise<Record<string, string | string[] | undefined>> }) {7 const sp = await searchParams;8 const t = typeof sp.t === 'string' ? sp.t : '';9 return (10 <>11 <h1 className="text-xl font-semibold tracking-tight">Choose a new password</h1>12 <p className="mt-1 text-sm text-muted">{t ? 'Your reset link is valid. Pick a new password below.' : 'Enter your e-mail, the 6-digit code we sent, and a new password.'}</p>13 <ResetForm token={t} />14 </>15 );16}17