import React, { FunctionComponent } from "react"; import { Redirect, Route, Switch } from "react-router-dom"; import { RouterEmptyPath } from "../404"; import { systemUpdateSettings } from "../@redux/actions"; import { useReduxAction } from "../@redux/hooks/base"; import { useAutoUpdate } from "../utilites/hooks"; import General from "./General"; import Languages from "./Languages"; import Notifications from "./Notifications"; import Providers from "./Providers"; import Radarr from "./Radarr"; import Scheduler from "./Scheduler"; import Sonarr from "./Sonarr"; import Subtitles from "./Subtitles"; import UI from "./UI"; interface Props {} const Router: FunctionComponent = () => { const update = useReduxAction(systemUpdateSettings); useAutoUpdate(update); return ( ); }; export default Router;