From acd49b49490815a2c0ef3fc886ad25ac85d83e2e Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sat, 4 Oct 2025 11:08:07 +0000 Subject: [PATCH] Add community event types cgen-e823bb084deb4bcaad5b17b6ac93a502 --- client/pages/Community.tsx | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/client/pages/Community.tsx b/client/pages/Community.tsx index 28a62e11..9b739c1f 100644 --- a/client/pages/Community.tsx +++ b/client/pages/Community.tsx @@ -38,6 +38,38 @@ import { Loader2, } from "lucide-react"; +type EventStatus = "Registration Open" | "Recurring" | "Upcoming" | "Waitlist"; + +type CommunityEvent = { + id: string; + title: string; + date: string; + location: string; + type: string; + participants: number; + prize?: string | null; + status: EventStatus; + description: string; + agenda: string[]; + registrationEnabled: boolean; + registrationUrl?: string; +}; + +type EventRegistrationPayload = { + name: string; + email: string; + teamName?: string; + message?: string; +}; + +interface EventCardProps { + event: CommunityEvent; + animationDelay: number; + isRegistered: boolean; + registrant?: EventRegistrationPayload; + onRegister: (payload: EventRegistrationPayload) => void; +} + export default function Community() { const [isLoading, setIsLoading] = useState(true); const toastShownRef = useRef(false);