export type DashboardStats = {
    overdue: number;
    dueThisWeek: number;
    enAttenteClient: number;
    enCours: number;
};

export type DashboardDeclaration = {
    id: number;
    title: string;
    type: string;
    typeLabel: string;
    clientName: string;
    assigneeName: string | null;
    status: string;
    statusLabel: string;
    dueDate: string | null;
    showUrl: string;
};

export type StatCardLink = {
    label: string;
    count: number;
    status: 'danger' | 'warning' | 'info' | 'success';
    href: string;
};

export type DashboardAlert = {
    id: number;
    severity: 'critical' | 'warning' | 'info';
    clientName: string;
    declarationType: string;
    typeLabel: string;
    daysValue: number;
    daysLabel: string;
    showUrl: string;
};

export type DashboardProps = {
    stats: DashboardStats | null;
    statCards: StatCardLink[];
    declarations: DashboardDeclaration[];
    alerts: DashboardAlert[];
    workspaceName: string | null;
    roleLabel: string | null;
    declarationsUrl: string | null;
    clientsUrl: string | null;
    viewAllAlertsUrl: string | null;
};
