import React, { JSX } from "react"; interface DestructibleAlertProps { variant?: "error" | "warning" | "alert"; text: string; icon?: JSX.Element; } const DestructibleAlert: React.FC = ({ variant, text, icon, }) => { return (
{icon}

{text}

); }; export default DestructibleAlert;