import React, { useState } from "react"; import './alert.css' import Iconsvg from '../../Ui/Icon/Icon' type Props = { title?:string, message: string, alertType: 'primary' | 'success' | 'info' | 'warning' | 'danger', alertIcon?: boolean, closeIcon?: boolean, iconName?:any, } const Alert = (props:Props) => { const {title, message, alertType, alertIcon, closeIcon, iconName} = props; const [show, setShow] = useState(true) const alertClose = () => { setShow(false) }; return ( <> { show &&
{alertIcon && } {title} {message} {closeIcon && }
} ); }; export default Alert;