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

export const CuttingStatus = {
    IN_PROGRESS: 'in_progress',
    COMPLETED: 'completed',
} as const;

export type CuttingStatusValue = (typeof CuttingStatus)[keyof typeof CuttingStatus];

export function cuttingStatusBadgeVariant(status: string): BadgeVariant {
    if (status === CuttingStatus.COMPLETED) {
        return 'secondary';
    }

    return 'outline';
}

export function cuttingStatusTransitionConfirmDescription(targetStatus: string): string {
    if (targetStatus === CuttingStatus.COMPLETED) {
        return 'Cutting akan ditandai selesai. Stok bahan baku akan dipotong sesuai pemakaian.';
    }

    return '';
}

export function cuttingStatusActionIcon(status: string): any {
    return Scissors;
}
