website/routes/machines/[id].tsx

11 lines
315 B
TypeScript
Raw Normal View History

import { PageProps } from '$fresh/server.ts'
import { MachineCard, machineMock } from ':components/MachineCard.tsx'
export default function Machine({ params }: PageProps) {
const machine = machineMock.at(Number(params.id))
return (
2024-06-06 16:38:52 +02:00
machine ? MachineCard(machine) : <h3>Machine pas encore disponible</h3>
)
}