mirror of
https://github.com/yldio/copilot.git
synced 2024-11-14 07:10:05 +02:00
25 lines
473 B
JavaScript
25 lines
473 B
JavaScript
const React = require('react');
|
|
const ReactRouter = require('react-router');
|
|
|
|
const Navigation = require('./navigation.js');
|
|
const Home = require('../home');
|
|
const Item = require('../item/');
|
|
|
|
const {
|
|
Base
|
|
} = require('../../../src');;
|
|
|
|
const {
|
|
Match
|
|
} = ReactRouter;
|
|
|
|
module.exports = () => {
|
|
return (
|
|
<Base>
|
|
<Navigation />
|
|
<Match exactly pattern='/' component={Home} />
|
|
<Match pattern='/:parent?/:name' component={Item} />
|
|
</Base>
|
|
);
|
|
};
|