import clsx from 'clsx'; import { Button } from '../Button/Button'; import { ReactComponent as xSVG } from './images/x.svg'; import { Props } from './Alert.types'; import styles from './Alert.module.scss'; function Alert({ alert, close }: Props) { const { content, options } = alert; const { type, title, style, isClosed } = options; const headerClassName = clsx(styles.header, styles[type]); return (