import * as Types from "@app/types"; import classNames from "classnames"; import * as React from "react"; import { Project } from "./Constants"; interface ClassNames { dropdown?: string; btn?: string; btnSm?: string; btnSecondary?: string; dropdownToggle?: string; dropdownMenu?: string; dropdownItem?: string; show?: string; active?: string; } const styles: ClassNames = require("./project-menu.scss"); export interface ProjectMenuProps { current: Types.Project; projects: Project[]; } const createMenuItem = ({ project, ...props }: Project, idx: number, current: Types.Project) => { const isActive = current.name === project.name && current.path === project.path; return ( ); }; const ProjectMenu = ({ projects, current }: ProjectMenuProps) => { const [isShow, toggleDropdownMenu] = React.useState(false); return ( <>