export const pageProgressMapper = {
    'duplicate-check': {
        percent: 15
    },
    'policy-vehicles': {
        percent: 20
    },
    'policy-endorsements': {
        percent: 20
    },
    'vehicle-selection': {
        percent: 25
    },
    'policy-holder-details': {
        percent: 30
    },
    'vehicle-damage': {
        percent: 35
    },
    'part-questions': {
        percent: 40
    },
    'molding-questions': {
        percent: 45
    },
    'vehicle-parts': {
        percent: 45
    },
    'capability-questions': {
        percent: 45
    },
    'vehicle-lookup': {
        percent: 45
    },
    'vin-lookup': {
        percent: 50
    },
    'license-plate-lookup': {
        percent: 50
    },
    'address-lookup': {
        percent: 50
    },
    'address-vehicles': {
        percent: 50
    },
    'coverage-statement': {
        percent: 55
    },
    'provider-preference': {
        percent: 60
    },
    'schedule-page': {
        percent: 70
    },
    'contact-details': {
        percent: 80
    },
    'service-packages': {
        percent: 85
    },
    'payment-method': {
        percent: 90
    },
    'payment-page': {
        percent: 95
    },
    'tpa-search': {
        percent: 80
    },
    'tpa-submit': {
        percent: 95
    },
    'tpa-confirmation': {
        percent: 100
    },
    'order-confirmation': {
        percent: 100
    }
};

export const getProgressBarPercentage = (page) => pageProgressMapper[page]?.percent || 0;
