import { Card, CardContent } from '@/components/ui/card'; import { Badge } from '@/components/ui/badge'; import { Star, MapPin, Ruler, FerrisWheel } from 'lucide-react'; import { Company } from '@/types/database'; import { useNavigate } from 'react-router-dom'; interface DesignerCardProps { company: Company; } export function DesignerCard({ company }: DesignerCardProps) { const navigate = useNavigate(); const handleClick = () => { navigate(`/designers/${company.slug}/`); }; const getCompanyIcon = () => { return ; }; return ( {/* Header Image/Logo Section */} {/* Background Gradient Overlay */} {/* Company Type Badge */} Designer {/* Logo or Icon */} {company.logo_url ? ( ) : ( {getCompanyIcon()} )} {/* Company Name */} {company.name} {/* Description */} {company.description && ( {company.description} )} {/* Company Details */} {/* Founded Year */} {company.founded_year && ( Founded: {company.founded_year} )} {/* Location */} {company.headquarters_location && ( {company.headquarters_location} )} {/* Rating */} {company.average_rating > 0 && ( {company.average_rating.toFixed(1)} {company.review_count > 0 && ( ({company.review_count} reviews) )} )} {/* Stats Display */} {(company as any).ride_count > 0 && ( {(company as any).ride_count} designs )} {(company as any).coaster_count > 0 && ( • {(company as any).coaster_count} coasters )} {(company as any).model_count > 0 && ( • {(company as any).model_count} concepts )} ); }
{company.description}