import { AdminMessage } from "@repo/db"; import { BaseNotification } from "_components/customToasts/BaseNotification"; import { cn } from "_helpers/cn"; import { TriangleAlert } from "lucide-react"; import toast, { Toast } from "react-hot-toast"; export const AdminMessageToast = ({ event, t }: { event: AdminMessage; t: Toast }) => { const handleClick = () => { toast.dismiss(t.id); }; return ( } className="flex flex-row">

Du wurdes durch den Admin {event.data?.admin.publicId}{" "} {event.status == "ban" ? "gebannt" : "gekickt"}!

{event.message}

); };