import { define } from '../../utils.ts'
import { MachineCard, machineMock } from ':components/MachineCard.tsx'

export default define.page(({ params }) => {
	const machine = machineMock.at(Number(params.id))

	return (
		machine ? MachineCard(machine) : <h3>Machine pas encore disponible</h3>
	)
})
