mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-27 12:01:00 +00:00
15 lines
449 B
JavaScript
15 lines
449 B
JavaScript
'use client';
|
|
'use strict';
|
|
|
|
function getStatus(status, path) {
|
|
const paths = Object.keys(status);
|
|
if (typeof path === "string") {
|
|
const nestedPaths = paths.filter((statusPath) => statusPath.startsWith(`${path}.`));
|
|
return status[path] || nestedPaths.some((statusPath) => status[statusPath]) || false;
|
|
}
|
|
return paths.some((statusPath) => status[statusPath]);
|
|
}
|
|
|
|
exports.getStatus = getStatus;
|
|
//# sourceMappingURL=get-status.cjs.map
|