import Route from "#/routes/common/Route";
import CommunitiesExplorePage from "#/routes/pages/search/CommunitiesExplorePage";
import RandomCommunityPage from "#/routes/pages/search/RandomCommunityPage";
import SearchCommunitiesPage from "#/routes/pages/search/results/SearchCommunitiesPage";
import SearchPostsResultsPage from "#/routes/pages/search/results/SearchFeedResultsPage";
import SearchPage from "#/routes/pages/search/SearchPage";

export default [
  <Route exact path="/search">
    <SearchPage />
  </Route>,
  <Route exact path="/search/random">
    <RandomCommunityPage />
  </Route>,
  <Route exact path="/search/posts/:search">
    <SearchPostsResultsPage type="posts" />
  </Route>,
  <Route exact path="/search/comments/:search">
    <SearchPostsResultsPage type="comments" />
  </Route>,
  <Route exact path="/search/communities/:search">
    <SearchCommunitiesPage />
  </Route>,
  <Route exact path="/search/explore">
    <CommunitiesExplorePage />
  </Route>,
];
