1234567891011121314151617181920 |
- import LeftSide from '@/components/LeftSide'
- import Guards from '@/components/Navigation'
- import { NavigationGuardsProps } from '@/types/router'
- import React from 'react'
- import { Switch } from 'react-router-dom'
- const Content:React.FC<NavigationGuardsProps> = props => {
- const { routeConfig, match, location } = props
- return (
- <>
- <LeftSide childRoutes={routeConfig} location={location}></LeftSide>
- <div className="panel-content">
- <Switch>
- <Guards routeConfig={routeConfig} match={match} location={location}></Guards>
- </Switch>
- </div>
- </>
- )
- }
- export default Content
|