- Updated all component headers and documentation
- Changed navbar and footer branding
- Updated homepage hero badge
- Modified page title in index.html
- Simplified footer text to 'Built with ❤️'
- Consistent V2 capitalization across all references
13 lines
285 B
JavaScript
13 lines
285 B
JavaScript
function lazyDisclosure(options) {
|
|
const { wasSelected, enabled, isSelected, mode = "unmount" } = options;
|
|
if (!enabled)
|
|
return true;
|
|
if (isSelected)
|
|
return true;
|
|
if (mode === "keepMounted" && wasSelected)
|
|
return true;
|
|
return false;
|
|
}
|
|
|
|
export { lazyDisclosure };
|