= ({ 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 [, hashId] = useStyle(prefixCls);
const rootCls = useCSSVarCls(prefixCls);
const wrapCSSVar = useCSSVar(rootCls);
return wrapCSSVar(
{content}
}
/>,
);
};
export default PurePanel;