import React from 'react'; import Button from './Button'; // Import the Button component // Define a basic interface for a service offer, exported for potential use elsewhere export interface ServiceOffer { id: string; title: string; description: string; price?: string; imageUrl?: string; imageAlt?: string; actionText?: string; onAction?: (id: string) => void; themeColor?: 'purple' | 'blue' | 'teal' | 'amber'; // Optional theme color } interface ServiceOfferCardProps { offer: ServiceOffer; } const ServiceOfferCard: React.FC = ({ offer }) => { const handleActionClick = () => { if (offer.onAction) { offer.onAction(offer.id); } }; return (
{offer.imageUrl && (
{offer.imageAlt
)}

{offer.title}

{offer.description}

{offer.price && (

{offer.price}

)} {offer.actionText && offer.onAction && ( )}
); }; export default ServiceOfferCard;