mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
22 lines
579 B
TypeScript
22 lines
579 B
TypeScript
import React, { FC } from 'react';
|
|
import { createPortal } from 'react-dom';
|
|
import { Route, Switch } from 'react-router';
|
|
import { TagSidebar } from '~/containers/sidebars/TagSidebar';
|
|
import { Authorized } from '~/components/containers/Authorized';
|
|
import { SubmitBar } from '~/components/bars/SubmitBar';
|
|
|
|
interface IProps {
|
|
prefix?: string;
|
|
isLab?: boolean;
|
|
}
|
|
|
|
const SidebarRouter: FC<IProps> = ({ prefix = '', isLab }) => {
|
|
return createPortal(
|
|
<Authorized>
|
|
<SubmitBar isLab={isLab} />
|
|
</Authorized>,
|
|
document.body
|
|
);
|
|
};
|
|
|
|
export { SidebarRouter };
|