Add EventDetails component and types with proper type definitions

This commit is contained in:
Your Name
2025-04-29 18:16:10 -04:00
parent fb61fc3ffb
commit d85bcc7296
3 changed files with 123 additions and 0 deletions

20
frontend/src/types.ts Normal file
View File

@@ -0,0 +1,20 @@
export interface Event {
id: number;
title: string;
description: string;
date: string;
location: string;
slug: string;
created_at: string;
updated_at: string;
}
export interface Rsvp {
id: number;
event_id: number;
name: string;
email: string;
status: 'attending' | 'not_attending' | 'maybe';
created_at: string;
updated_at: string;
}