import React from 'react' ; import { Route , Switch } from 'react-router-dom' ; import { ENGINE_CURATIONS_PATH , ENGINE_CURATIONS_NEW_PATH , ENGINE_CURATION_PATH , ENGINE_CURATION_SUGGESTION_PATH , } from '../../routes' ; import { Curation } from './curation' ; import { Curations , CurationCreation , CurationSuggestion } from './views' ; export const CurationsRouter = ( ) => { return ( < Switch > < Route exact path = { ENGINE_CURATIONS_PATH } > < Curations /> < /Route> < Route exact path = { ENGINE_CURATIONS_NEW_PATH } > < CurationCreation /> < /Route> < Route exact path = { ENGINE_CURATION_SUGGESTION_PATH } > < CurationSuggestion /> < /Route> < Route path = { ENGINE_CURATION_PATH } > < Curation /> < /Route> < /Switch>); } ;