import { Navigate, Route, Routes } from 'react-router-dom' import { memo, useMemo } from 'react' import { FilePdfOutlined } from '@ant-design/icons' import { Layout } from 'antd' import { RootPathContext, useRootPath } from '@asb/context' import { PrivateMenu } from '@components/Private' import { NoAccessComponent, wrapPrivateComponent } from '@utils' import DailyReport from './DailyReport' import DiagramReport from './DiagramReport' const { Content } = Layout const Reports = memo(() => { const root = useRootPath() const rootPath = useMemo(() => `${root}/reports`, [root]) return ( } /> } /> } /> } /> } /> ) }) export default wrapPrivateComponent(Reports, { requirements: [], title: 'Рапорта', route: 'reports/*', key: 'reports', })