13 lines
333 B
TypeScript
13 lines
333 B
TypeScript
|
import { PageProps } from '$fresh/server.ts'
|
||
|
import { ProjectCard, projectMock } from '../../components/ProjectCard.tsx'
|
||
|
|
||
|
export default function Projets({ params }: PageProps) {
|
||
|
const Projets = projectMock.at(Number(params.id))
|
||
|
|
||
|
return (
|
||
|
Projets
|
||
|
? ProjectCard(Projets)
|
||
|
: <h3>Projets inconnu, peut être un futur</h3>
|
||
|
)
|
||
|
}
|