@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
19 lines (17 loc) • 349 B
JavaScript
'use client';
function isEmptyComboboxData(data) {
if (data.length === 0) {
return true;
}
for (const item of data) {
if (!("group" in item)) {
return false;
}
if (item.items.length > 0) {
return false;
}
}
return true;
}
export { isEmptyComboboxData };
//# sourceMappingURL=is-empty-combobox-data.mjs.map