"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _reactNative = require("react-native");
var _elements = require("../../../../../elements");
var _native = require("@react-navigation/native");
var _styles = require("./styles");
var _BackButton = _interopRequireDefault(require("../../../../../elements/BackButton"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
function Header({
  title
}) {
  const {
    styles
  } = (0, _styles.useStyles)();
  const navigation = (0, _native.useNavigation)();
  return /*#__PURE__*/React.createElement(_reactNative.View, {
    style: styles.container
  }, /*#__PURE__*/React.createElement(_BackButton.default, {
    onPress: navigation.goBack
  }), /*#__PURE__*/React.createElement(_elements.Title, {
    numberOfLines: 1,
    ellipsizeMode: "tail",
    style: styles.title
  }, title), /*#__PURE__*/React.createElement(_reactNative.View, {
    style: styles.dummy
  }));
}
var _default = exports.default = Header;
//# sourceMappingURL=Header.js.map