import React from "react";
import { Route, Switch } from "react-router-dom";

import CategoriesList from "./CategoriesList";

const Categories = (): JSX.Element => {
	return (
		<Switch>
			<Route exact path="/categories/:id" component={CategoriesList} />
			<Route exact path="/sites/categories/:id" component={CategoriesList} />
		</Switch>
	);
};

export default Categories;
