text: import React from 'react';
  import { Route, Switch } from 'react-router-dom';
  import { TAGGING_ROOT_PATH } from './constants';
  import { listPage, newPage } from '../../libs/utils/crud.util';
  import ListPage from './ListPage';
  import EditPage from './EditPage';
  import CreatePage from './CreatePage';
  
  const MAIN_PATH = TAGGING_ROOT_PATH;
  
  function TaggingPage() {
    return (
      <Switch>
        <Route exact path={`${newPage(MAIN_PATH)}`} component={CreatePage} />
        <Route exact path={`${MAIN_PATH}/:id/edit`} component={EditPage} />
        <Route path={`${listPage(MAIN_PATH)}`} component={ListPage} />
      </Switch>
    );
  }
  
  TaggingPage.propTypes = {};
  
  TaggingPage.defaultProps = {};
  
  export default TaggingPage;
  