"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.TopBar = TopBar;
var _reactNative = require("react-native");
var _native = require("@react-navigation/native");
var _BackButton = _interopRequireDefault(require("../../../../../elements/BackButton"));
var _Title = _interopRequireDefault(require("../../../../../elements/Title"));
var _enums = require("../../../../../enums");
var _styles = require("./styles");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
function TopBar({
  count
}) {
  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_pending_follow_request_page,
    onPress: navigation.goBack
  }), /*#__PURE__*/React.createElement(_Title.default, {
    style: styles.title
  }, `Follow requests (${count})`), /*#__PURE__*/React.createElement(_reactNative.View, {
    style: styles.dummy
  }));
}
//# sourceMappingURL=TopBar.js.map