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

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

// Reload the rights component
const reloadAuthorized = () => {
  Authorized = RenderAuthorized(getAuthority());
};

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