import StyledSidebarButton from "components/system/StartMenu/Sidebar/StyledSidebarButton"; import { useRef } from "react"; import { spotlightEffect } from "utils/spotlightEffect"; type SidebarButton = { action?: () => void; active?: boolean; heading?: boolean; icon: JSX.Element; name: string; tooltip?: string; }; export type SidebarButtons = SidebarButton[]; const SidebarButtonComponent: FC = ({ action, active, heading, icon, name, tooltip, }) => { const buttonRef = useRef(null); return (
{icon}
{heading ? {name} : name}
); }; export default SidebarButtonComponent;