import { PageProps } from '$fresh/server.ts' import { Markdown } from ':components/Markdown.tsx' import { MemberCard } from ':components/MemberCard.tsx' import { db } from ':src/db/mod.ts' import { fetchCarnet, userToMemberCardProps } from ':src/members/mod.ts' export default async function Member(_: Request, { params, url }: PageProps) { const uuid = params.id as ReturnType const user = await db.resource.user.get({ uuid }).catch(() => undefined) if (!user) { return

Membre inconnu, peut ĂȘtre serez vous le prochain

} const memberCardProps = await userToMemberCardProps(user) const carnet = await fetchCarnet(user.login) return (
{MemberCard(memberCardProps)}
Portfolio
{carnet}
) }