import Icon from "./Icon"; type ToastState = { tone: "success" | "error" | "info"; message: string; }; type ToastProps = { toast: ToastState | null; }; const toneIconClass: Record = { success: "bg-[#e6f7f0] text-[#177b55]", error: "bg-[#fff0f0] text-[#b94a4a]", info: "bg-[#eaf4fd] text-[#2675bf]", }; export function Toast({ toast }: ToastProps) { if (!toast) return null; return (
{toast.message}
); }