import { g as govWarningLog } from './gov.log-BtqD9K8d.js';

// @TODO: deal with optional values
const validateProp = (valueEnum, value, component) => {
    const values = Object.values(valueEnum);
    const isValid = values.indexOf(value) > -1;
    if (!isValid) {
        govWarningLog(`[${component}]: Bad parameter with value (${value}). Available parameters are (${values.join(', ')}).`);
    }
};

export { validateProp as v };
//# sourceMappingURL=props-CJZgTDla.js.map

//# sourceMappingURL=props-CJZgTDla.js.map