/* eslint-disable @typescript-eslint/no-explicit-any */ import React, { FC } from 'react'; import { Col, Layout, Row } from 'antd'; import './banner.scss'; import { X } from 'react-feather'; import { CSSProperties } from '@material-ui/styles'; type PropsType = { closable?: boolean; content?: string | JSX.Element; onClose?: () => any; height?: string | number; type: 'primary' | 'secondary' | 'default' | 'warning' | 'important' | 'ghost'; style?: CSSProperties; contentColumnStyle?: CSSProperties; className?: string; children?: JSX.Element | JSX.Element[]; }; const Banner: FC = ({ closable, content, onClose, height, type, children, style, contentColumnStyle, className, }) => { const headerStyle = { height: height ? height : 68, lineHeight: height ? `${height}px` : '68px', ...style, }; return ( {content || children || ''} {closable && } ); }; export default Banner;