import React from 'react'; import classnames from 'classnames'; import { HeaderBase, Text, ButtonIcon, ButtonIconSize, IconName, ValidTag, } from '..'; import { TextVariant, TextAlign, } from '../../../helpers/constants/design-system'; import { useI18nContext } from '../../../hooks/useI18nContext'; import { ModalHeaderProps } from '.'; export const ModalHeader: React.FC = ({ children, className = '', startAccessory, endAccessory, onClose, closeButtonProps, onBack, backButtonProps, ...props }) => { const t = useI18nContext(); return ( )) } endAccessory={ endAccessory || (onClose && ( )) } {...props} > {typeof children === 'string' ? ( {children} ) : ( children )} ); };