import { DotsHorizontalIcon, UserRemoveIcon } from "@heroicons/react/outline"; import Dropdown from "../ui/Dropdown"; import { useState } from "react"; import { Dialog, DialogTrigger } from "@components/Dialog"; import ConfirmationDialogContent from "@components/dialog/ConfirmationDialogContent"; import Avatar from "@components/ui/Avatar"; import { Member } from "@lib/member"; import Button from "@components/ui/Button"; export default function MemberListItem(props: { member: Member; onActionSelect: (text: string) => void; onChange: (text: string) => void; }) { const [member] = useState(props.member); return ( member && (
  • {props.member.name} {props.member.email}
    {props.member.role === "INVITEE" && ( <> Pending Member )} {props.member.role === "MEMBER" && ( Member )} {props.member.role === "OWNER" && ( Owner )}
    • props.onActionSelect("remove")}> Are you sure you want to remove this member from the team?
  • ) ); }