import { Alert as AntdAlert, AlertProps } from 'antd'; import { FC, ReactNode } from 'react'; const getAlertComponentProps = (rawProps) => { const nextProps = rawProps; Object.keys(nextProps).forEach((key) => { if (nextProps[key] === '') { nextProps[key] = true; } }); return nextProps; }; const Alert: FC = (props) => { const { children, ...restProps } = props; return ( ); }; export default Alert;