import { Card, CardContent, CardHeader } from "@/components/ui/card"; import { Sprout, Calendar } from "lucide-react"; import { Crop } from "@/types"; interface CropCardProps { crop: Crop; onClick?: () => void; } export function CropCard({ crop, onClick }: CropCardProps) { const statusColors = { growing: "text-green-500", harvested: "text-yellow-500", planned: "text-blue-500", }; return (
{crop.status}

{crop.name}

Planted: {crop.plantedDate.toLocaleDateString()}

); }