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

18 lines
687 B
JavaScript

import React from 'react'
import {Route, Switch} from 'react-router'
import LostPayment from './lost-payment-view'
import NotFoundView from '../pages/not-found-page-view'
import TOS from '../pages/tos-page-view'
import PrivacyPageView from '../pages/privacy-page-view'
export default function InfoRouter({match}) {
const {path} = match
return <div className="container narrow">
<Switch>
<Route path={`${path}/lost-payment`} component={LostPayment}/>
<Route path={`${path}/tos`} component={TOS}/>
<Route path={`${path}/privacy`} component={PrivacyPageView}/>
<Route component={NotFoundView}/>
</Switch>
</div>
}