11 lines
290 B
TypeScript
11 lines
290 B
TypeScript
import { PageProps } from '$fresh/server.ts'
|
|
import { BlogCard, blogMock } from '../../components/BlogCard.tsx'
|
|
|
|
export default function Projet({ params }: PageProps) {
|
|
const article = blogMock.at(Number(params.id))
|
|
|
|
return (
|
|
article ? BlogCard(article) : <h3>Article inconnu</h3>
|
|
)
|
|
}
|