import { lazy } from "react"; import { Redirect, Route, Switch } from "react-router-dom"; import { BookmarkContextProvider } from "@/state/bookmark"; import { WatchedContextProvider } from "@/state/watched"; import { SettingsProvider } from "@/state/settings"; import { NotFoundPage } from "@/views/notfound/NotFoundView"; import { MediaView } from "@/views/media/MediaView"; import { SearchView } from "@/views/search/SearchView"; import { MWMediaType } from "@/backend/metadata/types"; import { V2MigrationView } from "@/views/other/v2Migration"; import { BannerContextProvider } from "@/hooks/useBanner"; import { Layout } from "@/setup/Layout"; function App() { return ( {/* functional routes */} {/* pages */} {/* other */} {process.env.NODE_ENV === "development" ? ( <> import("@/views/developer/DeveloperView") )} /> import("@/views/developer/TestView") )} /> import("@/views/developer/VideoTesterView") )} /> import("@/views/developer/ProviderTesterView") )} /> import("@/views/developer/EmbedTesterView") )} /> ) : null} ); } export default App;