// User role types
export type UserRole = "admin" | "barra" | "terrassa";

// User profile stored in Firestore
export interface UserProfile {
    email: string;
    role: UserRole;
    displayName?: string;
    createdAt: Date;
}

// Role label mapping
export const ROLE_LABELS: Record<UserRole, string> = {
    admin: "Administrador",
    barra: "Barra",
    terrassa: "Terraza",
};

// Get role label in Spanish
export function getRoleLabel(role: UserRole): string {
    return ROLE_LABELS[role];
}
