import { PageProps } from '$fresh/server.ts'
import { BlogCard, blogMock } from ':components/BlogCard.tsx'

export default function Projet({ params }: PageProps) {
	const article = blogMock.filter(blogEntry => blogEntry.name === params.name)[0]

	return (
		article ? BlogCard(article) : <h3>Article inconnu</h3>
	)
}
