import React from "react"; import { toast } from "sonner"; import { X, Copy, Check } from "lucide-react"; interface CustomErrorToastProps { message: string; toastId: string | number; copied?: boolean; onCopy?: () => void; } export function CustomErrorToast({ message, toastId, copied = false, onCopy, }: CustomErrorToastProps) { const handleClose = () => { toast.dismiss(toastId); }; const handleCopy = () => { if (onCopy) { onCopy(); } }; return (
{/* Content */}

Error

{/* Action buttons */}

{message}

); }