UNPKG

@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

13 lines 526 B
import { getLength } from './options'; export const shouldOpenPopover = ({ open, useActionBottomSheet, options, loadingList = false, noResultText, hasHighlightedOption = false, }) => { // If closed, nothing should be done if (!open) return false; // The popover should be opened when required if: return (useActionBottomSheet || getLength(options) > 0 || loadingList || noResultText?.content !== undefined || hasHighlightedOption); }; //# sourceMappingURL=popover.js.map