import { DotsHorizontalIcon, UserRemoveIcon } from "@heroicons/react/outline"; import { useState } from "react"; import { Member } from "@lib/member"; import { Dialog, DialogTrigger } from "@components/Dialog"; import ConfirmationDialogContent from "@components/dialog/ConfirmationDialogContent"; import Avatar from "@components/ui/Avatar"; import Button from "@components/ui/Button"; import Dropdown, { DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../ui/Dropdown"; export default function MemberListItem(props: { member: Member; onActionSelect: (text: string) => void; onChange: (text: string) => void; }) { const [member] = useState(props.member); return ( member && (