2024-02-15 11:30:35 +01:00
|
|
|
import { PageProps } from '$fresh/server.ts'
|
2024-07-01 13:11:20 +02:00
|
|
|
import { MachineCard, machineMock } from ':components/MachineCard.tsx'
|
2024-02-15 11:30:35 +01:00
|
|
|
|
|
|
|
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>
|
2024-02-15 11:30:35 +01:00
|
|
|
)
|
|
|
|
}
|