import { Router } from '@/routes/types' ; import React , { lazy } from 'react' ; import { Route , Switch } from 'react-router-dom' ; import { ShareNothing } from './share-nothing' ; const Dashboard = lazy ( ( ) => import ( './dashboard' ) ) ; export const ShareIndex = ( ) => { return < Switch > < Route path = { Router . SHARE_DASHBOARD } > < Dashboard /></Route > < Route path = "*" > < ShareNothing /></Route > < /Switch>; } ; export default ShareIndex ;