type MachineCardProps = {
img: string
name: string
tags: string[]
id: string
free: boolean
}
export function MachineCard(
{ name, tags, img, id, free }: MachineCardProps,
) {
const stateIcon = free
?
:
return (
{stateIcon}
{name}
{tags.map((tag) => {tag})}
)
}
export const machineMock: MachineCardProps[] = Array(20).fill(undefined).map(
(_, index) => {
return {
name: `Machine ${index}`,
tags: ['3d', 'laser'],
free: Math.random() > 0.5,
img: `url("https://picsum.photos/id/${index + 10}/400")`,
id: String(index),
}
},
)