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

{text}

); }; export default DestructibleAlert;