import React from 'react'; import classNames from 'classnames'; import { Icon } from 'antd'; import styles from './index.less'; export default function Result({ className, type, title, description, extra, actions, ...restProps }) { const iconMap = { error: , success: , }; const clsString = classNames(styles.result, className); return (
{iconMap[type]}
{title}
{description &&
{description}
} {extra &&
{extra}
} {actions &&
{actions}
}
); }