@vuesax-alpha/nightly
Version:
A Component Library for Vue 3
10 lines (8 loc) • 633 B
JavaScript
const isNavbarGroup = (nav) => Object.prototype.hasOwnProperty.call(nav, "children");
const isNavbarItem = (nav) => !Object.prototype.hasOwnProperty.call(nav, "children");
const isLinkExternal = (path) => !!(path == null ? void 0 : path.startsWith("http"));
const isMailto = (path) => !!(path == null ? void 0 : path.startsWith("mailto:"));
const isTel = (path) => !!(path == null ? void 0 : path.startsWith("tel:"));
const isExternal = (path) => isLinkExternal(path) || isMailto(path) || isTel(path) || false;
export { isExternal, isLinkExternal, isMailto, isNavbarGroup, isNavbarItem, isTel };
//# sourceMappingURL=navbar.mjs.map