export const getLabel = (option, accessor = '') => {
    if (!accessor) {
        if (option.hasOwnProperty('label')) {
            return option.label;
        }
    }
    return option[accessor];
};
export const getValue = (option, accessor = '') => {
    if (!accessor) {
        if (option.hasOwnProperty('value')) {
            return option.value;
        }
    }
    return option[accessor];
};
//# sourceMappingURL=getSelectOptionValue.js.map