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

export const StokOpnameStatus = {
    DRAFT: 'draft',
    PENDING: 'pending',
    VERIFIED: 'verified',
    REJECTED: 'rejected',
} as const;

export type StokOpnameStatusValue = (typeof StokOpnameStatus)[keyof typeof StokOpnameStatus];

const badgeVariants: Record<StokOpnameStatusValue, BadgeVariant> = {
    draft: 'secondary',
    pending: 'outline',
    verified: 'default',
    rejected: 'destructive',
};

export function stokOpnameStatusBadgeVariant(status: StokOpnameStatusValue): BadgeVariant {
    return badgeVariants[status];
}
