diff --git a/routes/profil/index.tsx b/routes/profil/index.tsx index a609590..1230b4a 100644 --- a/routes/profil/index.tsx +++ b/routes/profil/index.tsx @@ -1,8 +1,31 @@ -export default function Profil() { +import { Button } from 'univoq' +import LoginForm from '../../islands/LoginForm.tsx' +import PassKeyRegister from '../../islands/PassKeyRegister.tsx' +import type { SessionPageProps } from '../../src/session/mod.ts' +import type { User } from '@cohabit/ressources_manager/mod.ts' + +export default function Profil({ state }: SessionPageProps) { + const user = state.session?.get('user') + + if (user) { + return ( + <> +

Mon compte

+
+
{ JSON.stringify(user, null, 2) }
+
+
+ + +
+ + ) + } + return ( <> -

Profil

-
+

Accéder à mon compte

+ ) }