Add community event types

cgen-e823bb084deb4bcaad5b17b6ac93a502
This commit is contained in:
Builder.io 2025-10-04 11:08:07 +00:00
parent 9a83bbeaff
commit acd49b4949

View file

@ -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);