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>
	)
}
