import type { BadgeVariant } from '@/lib/badge-variant';

export const EmployeeAdvanceStatus = {
    PENDING: 'pending',
    APPROVED: 'approved',
    REJECTED: 'rejected',
    PARTIALLY_PAID: 'partially_paid',
    PAID: 'paid',
} as const;

export function employeeAdvanceStatusBadgeVariant(status: string): BadgeVariant {
    switch (status) {
        case EmployeeAdvanceStatus.APPROVED:
            return 'default';
        case EmployeeAdvanceStatus.PARTIALLY_PAID:
            return 'outline';
        case EmployeeAdvanceStatus.PAID:
            return 'secondary';
        case EmployeeAdvanceStatus.REJECTED:
            return 'destructive';
        default:
            return 'outline';
    }
}
