export const pageProgressMapper = {
    'duplicate-check': {
        percent: 10
    },
    'policy-holder-details': {
        percent: 15
    },
    'policy-vehicles': {
        percent: 15
    },
    'policy-endorsements': {
        percent: 15
    },
    'vehicle-selection': {
        percent: 20
    },
    'vehicle-damage': {
        percent: 30
    },
    'part-questions': {
        percent: 35
    },
    'molding-questions': {
        percent: 40
    },
    'vehicle-parts': {
        percent: 40
    },
    'capability-questions': {
        percent: 40
    },
    '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
    },
    'service-location': {
        percent: 65
    },
    'schedule-page': {
        percent: 70
    },
    'contact-details': {
        percent: 80
    },
    'service-packages': {
        percent: 85
    },
    'payment-method': {
        percent: 90
    },
    'payment-page': {
        percent: 95
    },
    'tpa-search': {
        percent: 85
    },
    'tpa-confirmation': {
        percent: 100
    },
    'order-confirmation': {
        percent: 100
    }
};

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