import { BottomSheetHeaderProps } from './types' import { Box } from '../components/Box' import { Icon } from '../components/Icon' import { Row } from '../components/Row' import { Text } from '../components/Text' import { Touchable } from '../components/Touchables/Touchable' export const BottomSheetHeader = ({ title, numberOfLines = undefined, showCloseButton, onClose, iconConfig, }: BottomSheetHeaderProps) => { if (!showCloseButton && !title) { return null } return ( {iconConfig && ( )} {title && ( {title} )} {showCloseButton && ( )} ) }