From da1fd74f9387149b2b94d62853587a8afdb74ddd Mon Sep 17 00:00:00 2001 From: Wolfboy248 Date: Thu, 21 Aug 2025 10:33:27 +0200 Subject: Reorganised Maplist and Sidebar --- frontend/src/components/Sidebar/Footer.tsx | 80 ++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 frontend/src/components/Sidebar/Footer.tsx (limited to 'frontend/src/components/Sidebar/Footer.tsx') diff --git a/frontend/src/components/Sidebar/Footer.tsx b/frontend/src/components/Sidebar/Footer.tsx new file mode 100644 index 0000000..070301a --- /dev/null +++ b/frontend/src/components/Sidebar/Footer.tsx @@ -0,0 +1,80 @@ +import React, { useRef } from "react"; +import { Link } from "react-router-dom"; + +import styles from "./Sidebar.module.css"; + +import { UserProfile } from "@customTypes/Profile"; +import Login from "@components/Login"; + +import { + UploadIcon, + BookIcon, + HelpIcon, +} from "../../images/Images"; + +interface FooterProps { + profile?: UserProfile; + onUploadRun: () => void; + setProfile: React.Dispatch>; + setToken: React.Dispatch>; + sidebarButtonRefs: React.RefObject<(HTMLButtonElement | null)[]>; + getButtonClasses: (buttonIndex: number) => string; + handle_sidebar_click: (clicked_sidebar_idx: number) => void; +}; + +const Footer: React.FC = ({ profile, onUploadRun, setToken, setProfile, sidebarButtonRefs, getButtonClasses, handle_sidebar_click }) => { + const uploadRunRef = useRef(null); + + return ( +
+ {profile && profile.profile && ( + + )} + +
+ +
+ + + + + + + + +
+ ); +} + +export default Footer; -- cgit v1.2.3