export enum ScanState { scanning, scan_successful, scan_failed } export type TicketData = { id: string; name: string; surname: string; email: string; event: { id: string; name: string }; created_at: string; created_by: { id: string; display_name: string } | null; scanned: boolean; scanned_at: string | null; scanned_by: { id: string; display_name: string } | null; }; export const defaultTicketData: TicketData = { id: '', name: '', surname: '', email: '', event: '', created_at: new Date().toISOString(), created_by: null, scanned: false, scanned_at: null, scanned_by: null, };