export enum DealStatus {
    CREATED = 0,
    AWAITING_ACCEPTANCE = 1,
    PACKAGING = 2,
    AWAITING_SHIPMENT = 3,
    AWAITING_PAYMENT = 4,
    COMPLETED = 5,
    CANCELLED = 6,
}

export const getDealStatusByName = (name: string): DealStatus => {
    return DealStatus[name as keyof typeof DealStatus];
}