UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

26 lines (23 loc) 614 B
'use client'; 'use strict'; function getOptionsLockup(options) { return options.reduce((acc, item) => { if ("group" in item) { return { ...acc, ...getOptionsLockup(item.items) }; } acc[item.value] = item; return acc; }, {}); } function getLabelsLockup(options) { return options.reduce((acc, item) => { if ("group" in item) { return { ...acc, ...getLabelsLockup(item.items) }; } acc[item.label] = item; return acc; }, {}); } exports.getLabelsLockup = getLabelsLockup; exports.getOptionsLockup = getOptionsLockup; //# sourceMappingURL=get-options-lockup.cjs.map