import { ArrowLeftOutlined } from "@ant-design/icons"; import BABox from "./BABox"; import BAIconButton from "./BAIconButton"; import BAPera from "./BAPera"; import { goBack } from "./config/helpers"; type propsType = { title: string, headerOptions?: any[], disableBack?: boolean extraTitle?: any, headClassName?: string, } export default function BAScreenHeader(props: propsType) { const { title, headerOptions, disableBack, extraTitle, headClassName } = props; return <> {!disableBack && } />} {title} {extraTitle} {headerOptions?.map((option: any, index: number) => { return option.isHide ? <> : {option.displayField()} })} }