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

export const LeaveRequestStatus = {
    PENDING: 'pending',
    APPROVED: 'approved',
    REJECTED: 'rejected',
} as const;

export function leaveRequestStatusBadgeVariant(status: string): BadgeVariant {
    switch (status) {
        case LeaveRequestStatus.APPROVED:
            return 'default';
        case LeaveRequestStatus.REJECTED:
            return 'destructive';
        default:
            return 'outline';
    }
}
