import { FC, ReactNode, useState } from "react" import IconClose from "../icon/IconClose" import Button from "../action/Button" import classNames from "classnames" export interface AlertProps { canClose?: boolean className?: string children?: ReactNode } const Alert: FC = ({ canClose = true, className = "", children, }) => { const [closed, setClosed] = useState(false) if (closed) { return <> } return (
{children}
{canClose && ( )}
) } export default Alert