'use client'; import React from 'react'; import { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent, } from '@/components/ui/card'; interface props { name: string; description: string; location: string; eventStartDate: number; eventHost: string; imageURL: string | null; } const FeaturedEvent = ({ name, description, location, eventStartDate, eventHost, imageURL }: props) => { return {imageURL && {name}} {name} {location}
{new Date(eventStartDate*1000).toLocaleString()}
{description} Host: {eventHost.substring(0, 8)}...{eventHost.substring(eventHost.length-3)}
} export default FeaturedEvent;