import React from 'react'; import { Card, CardHeader, CardContent, CardFooter, } from '@/components/ui/card'; import { Button } from '@/components/ui/button'; import { Badge } from '@/components/ui/badge'; import { Separator } from '@/components/ui/separator'; import ImageCarousel from './ImageCarousel'; import { buyHandler } from '@/lib/buyHandler'; import { useToast } from '@/hooks/use-toast'; import NumberPicker from './TicketButton'; interface EventDescriptionProps { eventDetails: { EventID: number; name: string; date: string; location: string; ticketPrice: number; description: string; capacity: number; ticketsSold: number; imageUrl: string[]; host: string; }; } const EventDescription: React.FC = ({ eventDetails, }) => { const { toast } = useToast(); const handleBuyNow = () => { buyHandler(eventDetails.EventID, toast); }; return (

{eventDetails.name}

Price: ${eventDetails.ticketPrice}

{eventDetails.description}

Location: {eventDetails.location}

Date: {eventDetails.date}

Host: {eventDetails.host}

{eventDetails.ticketsSold / eventDetails.capacity >= 0.9 && (
Limited Tickets Remaining!
)}
); }; export default EventDescription;