import { cn } from "~/utils"; import { Avatar } from "./ui/avatar"; import { Button } from "./ui/button"; import { AddIcon, EditIcon, FingerPrintIcon } from "./icons"; import { Dialog, DialogDescription, DialogHeader, DialogTitle, DialogTrigger } from "./ui/dialog"; import { DialogContent, Portal } from "@radix-ui/react-dialog"; interface ManagementCardProps { title?: string; value?: string; subtitle?: string; isInviteCard?: boolean; isPasswordCard?: boolean; isAvatarCard?: boolean; isDeleteCard?: boolean buttonText?: string; buttonOnClick?: () => void dialogNode?: React.ReactNode } export const ManagementCard = ({ title, isAvatarCard, isInviteCard, isPasswordCard, isDeleteCard, subtitle, value, buttonText, buttonOnClick, dialogNode }: ManagementCardProps) => { const buttonVariant: string = isInviteCard ? "accent" : isDeleteCard ? "destructive" : "default"; return (