= ({ prefixCls, type, icon, children }) => (
{icon || TypeIcon[type!]}
{children}
);
export interface PurePanelProps
extends Omit,
Omit {
prefixCls?: string;
}
/** @private Internal Component. Do not use in your production. */
const PurePanel: React.FC = (props) => {
const { prefixCls: staticPrefixCls, className, type, icon, content, ...restProps } = props;
const { getPrefixCls } = React.useContext(ConfigContext);
const prefixCls = staticPrefixCls || getPrefixCls('message');
const rootCls = useCSSVarCls(prefixCls);
const [wrapCSSVar, hashId] = useStyle(prefixCls, rootCls);
return wrapCSSVar(
{content}
}
/>,
);
};
export default PurePanel;