"use strict";

import React from 'react';
import { HeaderContainer, HeaderLeft, HeaderRight } from './styledModalComponents';
import { BackIcon } from '../../assets/icons';
import Button from '../styled/Button';
import { Text } from 'react-native';
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
const ModalHeaderComponent = ({
  handleCloseModal,
  headerTitle,
  rightMenu,
  leftMenu
}) => {
  return /*#__PURE__*/_jsxs(HeaderContainer, {
    children: [/*#__PURE__*/_jsx(HeaderLeft, {
      children: leftMenu ? leftMenu : /*#__PURE__*/_jsxs(_Fragment, {
        children: [/*#__PURE__*/_jsx(Button, {
          EndIcon: /*#__PURE__*/_jsx(BackIcon, {}),
          onPress: handleCloseModal
        }), /*#__PURE__*/_jsx(Text, {
          children: headerTitle ?? 'Go back'
        })]
      })
    }), /*#__PURE__*/_jsx(HeaderRight, {
      children: rightMenu
    })]
  });
};
export default ModalHeaderComponent;
//# sourceMappingURL=ModalHeaderComponent.js.map