import { Alert as AlertIcon, ClockBorderless as ClockIcon } from '@transferwise/icons'; import { clsx } from 'clsx'; import { PropsWithChildren } from 'react'; import Alert from '../Alert'; import { Sentiment } from '../../common'; import Circle, { CircleProps } from '../../common/Circle'; import SentimentSurface from '../../SentimentSurface'; /** * @deprecated Use CriticalBanner and associated typings */ export type CriticalCommsBannerSentiment = `${Sentiment.WARNING}` | `${Sentiment.NEGATIVE}` | `${Sentiment.NEUTRAL}`; /** * @deprecated Use CriticalBanner and associated typings */ export type CriticalCommsBannerProps = { title: string; subtitle?: string; action?: { label: string; href?: string; target?: HTMLAnchorElement['target']; onClick?: () => void; }; sentiment?: CriticalCommsBannerSentiment; className?: string; }; const makeSurface = (sentiment: CriticalCommsBannerSentiment) => { const Surface = (props: PropsWithChildren>) => ( ); Surface.displayName = `CriticalCommsSurface(${sentiment})`; return Surface; }; const iconBySentiment: Record = { [Sentiment.NEGATIVE]: ( ), [Sentiment.WARNING]: ( ), [Sentiment.NEUTRAL]: ( ), }; /** * @deprecated `CriticalCommsBanner` component is deprecated and now replaced by the `CriticalBanner` component. */ function CriticalCommsBanner({ title, subtitle, action, sentiment = Sentiment.NEGATIVE, className, }: CriticalCommsBannerProps) { return ( ); } export default CriticalCommsBanner;