1import { j as jsxRuntimeExports } from "./chunk-BU8s67O7.js"; 2import { F as useUserRoles } from "./chunk-BclX8tFC.js"; 3const ProtectedWithPermissions = ({ 4 children, 5 allowedRoles 6}) => { 7 const { roles } = useUserRoles(); 8 const userIsAllowed = allowedRoles.some((allowedRole) => roles.includes(allowedRole)); 9 if (!userIsAllowed) { 10 return null; 11 } 12 return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children }); 13}; 14export { 15 ProtectedWithPermissions as P 16};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.