SPB Git

spb/rareindex

Public
723 B · 17 lines tsx
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
Files · d93392862678cbf30e175697fcb812bc4ff0b5a7
Menu

Theme