website/routes/membres/[id].tsx

13 lines
337 B
TypeScript

import { PageProps } from '$fresh/server.ts'
import { MemberCard, memberMock } from '../../components/MemberCard.tsx'
export default function Member({ params }: PageProps) {
const Member = memberMock.at(Number(params.id))
return (
Member
? MemberCard(Member)
: <h3>Membre inconnu, peut être serai vous le prochain</h3>
)
}