lumina/ui/views/graph/graph-router.js
2025-11-29 23:13:05 +03:00

14 lines
433 B
JavaScript

import React from 'react'
import {Route, Switch} from 'react-router'
import NotFoundView from '../pages/not-found-page-view'
import GraphView from './graph-view'
export default function GraphRouter({match}) {
const {path} = match
return <div className="container">
<Switch>
<Route path={`${path}`} exact component={GraphView}/>
<Route component={NotFoundView}/>
</Switch>
</div>
}