"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.TopBar = TopBar;
var _reactNative = require("react-native");
var _styles = require("./styles");
var _BackButton = _interopRequireDefault(require("../../../../../elements/BackButton"));
var _native = require("@react-navigation/native");
var _Typography = require("../../../../../../core/components/Typography/Typography");
var _enums = require("../../../../../enums");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
function TopBar({
  displayName
}) {
  const {
    styles
  } = (0, _styles.useStyles)();
  const navigation = (0, _native.useNavigation)();
  return /*#__PURE__*/React.createElement(_reactNative.View, {
    style: styles.container
  }, /*#__PURE__*/React.createElement(_BackButton.default, {
    pageId: _enums.PageID.user_relationship_page,
    onPress: navigation.goBack
  }), /*#__PURE__*/React.createElement(_Typography.Typography.TitleBold, {
    numberOfLines: 1,
    ellipsizeMode: "tail",
    style: styles.displayName
  }, displayName), /*#__PURE__*/React.createElement(_reactNative.View, {
    style: styles.dummy
  }));
}
//# sourceMappingURL=TopBar.js.map