import { DotsHorizontalIcon, UserRemoveIcon } from "@heroicons/react/outline"; import { useState } from "react"; import { useLocale } from "@lib/hooks/useLocale"; 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: { localeProp: string; member: Member; onActionSelect: (text: string) => void; onChange: (text: string) => void; }) { const [member] = useState(props.member); const { t, locale } = useLocale({ localeProp: props.localeProp }); return ( member && (