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 && (