SPB Git forge

spb/rareindex

Public
54commits 1branches 0releases
7.1 MBsize
maindefault branch
10 days agolast push
TypeScript 61.9% HTML 37.2% SQL 0.7%
723 B · 17 lines tsx
Raw Blame History
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