import React, { useRef } from "react"; import { Link } from "react-router-dom"; import styles from "./Sidebar.module.css"; import { UserProfile } from "@customTypes/Profile"; import { UploadIcon, } from "../../images/Images"; import links from "./Links"; interface FooterProps { profile?: UserProfile; isSearching: boolean; selectedButtonIndex: number; onUploadRun: () => void; // currently unused, but needed for login component // setProfile: React.Dispatch>; // setToken: React.Dispatch>; handle_sidebar_click: (clicked_sidebar_idx: number) => void; }; const _Footer: React.FC = ({ profile, isSearching, selectedButtonIndex, onUploadRun, handle_sidebar_click }) => { const uploadRunRef = useRef(null); return (
{profile && profile.profile && ( )} {/*
*/} {links.footer.map(({ to, icon, label }, i) => ( ))}
); } export default _Footer;