import { FC, useMemo } from 'react'; import cx from 'classnames'; import { IAlertProps, Alert } from '../alert'; export type BannerCloseIconColor = 'grey' | 'white'; const BannerCloseIconColorMap: Record = { grey: '#999', white: '#fff', } as const; export type IBannerProps = Omit & { backgroundImage: string; }; export const Banner: FC = ({ backgroundImage, closeIconColor, style = {}, className, closable = true, ...resetProps }) => { const bannerStyle = useMemo(() => { if (!backgroundImage) return style; return { ...style, backgroundImage: `url(${backgroundImage})`, }; }, [style, backgroundImage]); const bannerClassName = cx('zent-banner', className); return ( ); }; export default Banner;