Authorized.ts 361 Bytes
Newer Older
ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
1
import { default as RenderAuthorize } from '@/components/Authorized';
ddcat1115's avatar
ddcat1115 committed
2 3
import { getAuthority } from './authority';

4
let Authorized = RenderAuthorize(getAuthority()); // eslint-disable-line
ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
5 6 7

// Reload the rights component
const reloadAuthorized = () => {
8
  Authorized = RenderAuthorize(getAuthority());
ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
9 10 11
};

export { reloadAuthorized };
ddcat1115's avatar
ddcat1115 committed
12
export default Authorized;