index.tsx (668B)
1 import { AppState } from "#http/routes/_middleware.ts"; 2 import { PageProps } from "$fresh/src/server/mod.ts"; 3 4 type Props = { 5 uuid: string | null; 6 }; 7 8 export default function HomePage({ state }: PageProps<Props, AppState>) { 9 return ( 10 <> 11 <h1>Homepage</h1> 12 <a 13 href={state.forms.link({ 14 form: "/register/phone", 15 context: { back: "/" }, 16 }).href} 17 > 18 Register Phone 19 </a> 20 <br /> 21 <a 22 href={state.forms.link({ 23 form: "/register/id-document", 24 context: { side: "doc-front", back: "/" }, 25 }).href} 26 > 27 Register ID Document 28 </a> 29 </> 30 ); 31 }