import Button from "./Button"; import DeleteUser from "./DeleteUser"; import UserProjectListAdmin from "./UserProjectListAdmin"; import { useState } from "react"; import ChangeRoleView from "./ChangeRoleView"; function MemberInfoModal(props: { projectName: string; username: string; onClose: () => void; }): JSX.Element { const [showRoles, setShowRoles] = useState(false); const handleChangeRole = (): void => { if (showRoles) { setShowRoles(false); } else { setShowRoles(true); } }; return (
{props.username}
(Change Role)
{showRoles && (