import { Card, CardContent, CardHeader } from "@/components/ui/card"; import { MapPin, Sprout, Plus } from "lucide-react"; import type { Farm } from "@/types"; export interface FarmCardProps { variant: "farm" | "add"; farm?: Farm; onClick?: () => void; } export function FarmCard({ variant, farm, onClick }: FarmCardProps) { const cardClasses = "w-full max-w-[240px] bg-muted/50 hover:bg-muted/80 transition-all cursor-pointer group hover:shadow-lg"; if (variant === "add") { return (

Setup

Setup new farm

); } if (variant === "farm" && farm) { return (
{farm.type}

{farm.name}

{farm.location}

Created {farm.createdAt.toLocaleDateString()}
); } return null; }