import React, { useContext } from "react"; import { SearchBar } from "./GlobalSearchBar/SearchBar"; import { DownloadProgressTick } from "./ComicDetail/DownloadProgressTick"; import { Link } from "react-router-dom"; import { useSelector } from "react-redux"; import { isUndefined } from "lodash"; import { format, fromUnixTime } from "date-fns"; const Navbar: React.FunctionComponent = (props) => { const downloadProgressTick = useSelector( (state: RootState) => state.airdcpp.downloadProgressData, ); const airDCPPSocketConnectionStatus = useSelector( (state: RootState) => state.airdcpp.isAirDCPPSocketConnected, ); const airDCPPSessionInfo = useSelector( (state: RootState) => state.airdcpp.airDCPPSessionInfo, ); const socketDisconnectionReason = useSelector( (state: RootState) => state.airdcpp.socketDisconnectionReason, ); return ( ); }; export default Navbar;