@kubit-ui-web/react-components
Version:
Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience
9 lines • 438 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDefaultTabSeleted = void 0;
const getDefaultTabSeleted = (selectedValue, sections) => {
const tab = sections?.findIndex(section => section.options?.some(option => option.value === selectedValue));
return tab && tab >= 0 ? tab : 0;
};
exports.getDefaultTabSeleted = getDefaultTabSeleted;
//# sourceMappingURL=functionalitiesModule.utils.js.map