1 import type { ReactNode } from 'react';
3 import { c } from 'ttag';
5 import { Button } from '@proton/atoms';
6 import Icon from '@proton/components/components/icon/Icon';
7 import { isElectronOnMac } from '@proton/shared/lib/helpers/desktop';
8 import clsx from '@proton/utils/clsx';
14 'data-testid'?: string;
17 const TopBanner = ({ children, className, onClose, ...rest }: Props) => {
22 'flex shrink-0 flex-nowrap text-center relative text-bold no-print',
24 isElectronOnMac && 'pt-4',
28 <div className="flex-1 p-2">{children}</div>
33 className="shrink-0 rounded-none"
35 title={c('Action').t`Close this banner`}
37 <Icon name="cross" alt={c('Action').t`Close this banner`} />
44 export default TopBanner;