import { WarningOutlined } from '@ant-design/icons'; import { Typography } from 'antd'; import React from 'react'; interface AlertInfoProps { type: 'danger' | 'warning'; message: string; rows?: number; icon?: React.ReactNode; ellipsis?: boolean; style?: React.CSSProperties; } const AlertInfo: React.FC = (props) => { const { message, type, rows = 1, ellipsis, style } = props; return ( <> {message ? ( {message} ) : null} ); }; export default React.memo(AlertInfo);