import Link from 'next/link'; import { VerticalFarm } from '../../lib/vertical-farming/types'; interface FarmCardProps { farm: VerticalFarm; } export default function FarmCard({ farm }: FarmCardProps) { const statusColors: Record = { offline: 'bg-gray-100 text-gray-800', starting: 'bg-yellow-100 text-yellow-800', operational: 'bg-green-100 text-green-800', maintenance: 'bg-orange-100 text-orange-800', emergency: 'bg-red-100 text-red-800', }; const activeZones = farm.zones.filter(z => z.status !== 'empty' && z.status !== 'cleaning').length; return (

{farm.name}

{farm.location.city}, {farm.location.country}

{farm.status.replace('_', ' ')}

Active Zones

{activeZones}/{farm.zones.length}

Active Plants

{farm.specs.currentActivePlants.toLocaleString()}

Capacity {farm.currentCapacityUtilization}%

Area

{farm.specs.growingAreaSqm}m²

Levels

{farm.specs.numberOfLevels}

Efficiency

{farm.energyEfficiencyScore}%

); }