import React from 'react'; import { Switch, Route, Redirect } from 'react-router-dom'; import { NoPageFound } from './shared/NoPageFound'; import { PageRoutes } from '../conf/Global'; import { SearchablePage } from './search/SearchablePage'; import { useEntityRegistry } from './useEntityRegistry'; import { EntityPage } from './entity/EntityPage'; import { BrowseResultsPage } from './browse/BrowseResultsPage'; import { SearchPage } from './search/SearchPage'; import { AnalyticsPage } from './analyticsDashboard/components/AnalyticsPage'; import { ManageDomainsPage } from './domain/ManageDomainsPage'; import { ManageIngestionPage } from './ingest/ManageIngestionPage'; import BusinessGlossaryPage from './glossary/BusinessGlossaryPage'; import { SettingsPage } from './settings/SettingsPage'; /** * Container for all searchable page routes */ export const SearchRoutes = (): JSX.Element => { const entityRegistry = useEntityRegistry(); return ( {entityRegistry.getEntities().map((entity) => ( } /> ))} } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> ); };