import React from 'react'; import { type Service } from '../types'; import { Globe, X } from 'lucide-react'; interface ServiceCardProps { service: Service; onDelete: (id: string) => void; } const ServiceCard: React.FC = ({ service, onDelete }) => { const IconComponent = typeof service.icon === 'string' ? Globe : service.icon; const handleDelete = (e: React.MouseEvent) => { e.preventDefault(); e.stopPropagation(); if (window.confirm(`Are you sure you want to delete ${service.name}?`)) { onDelete(service.id); } }; return (

{service.name}

{service.description}

); }; export default ServiceCard;