import type { Device } from '@prisma/client' import Link from 'next/link' import AddDevicesToCartButton from './add-devices-to-cart-button' import BlockDeviceDialog from './block-device-dialog' import { Badge } from './ui/badge' export default function DeviceCard({ device, parentalControl }: { device: Device, parentalControl?: boolean }) { return (
{device.name} {device.mac}
Active until{" "} {new Date().toLocaleDateString("en-US", { month: "short", day: "2-digit", year: "numeric", })} {device.blocked && (
Comment:

blocked because he was watching youtube

)} {!parentalControl ? ( ) : ( )}
) }