"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.PendingFollowRequests = PendingFollowRequests;
var _reactNative = require("react-native");
var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
var _Typography = require("../../../../core/components/Typography/Typography");
var _components = require("./components");
var _usePendingFollowRequests = require("./hooks/usePendingFollowRequests");
function PendingFollowRequests() {
  const {
    pendingRequests,
    pendingCount,
    isLoading,
    isLoadingFirstPage,
    hasMore,
    loadMore,
    styles,
    accessibilityId
  } = (0, _usePendingFollowRequests.usePendingFollowRequests)();
  return /*#__PURE__*/React.createElement(_reactNativeSafeAreaContext.SafeAreaView, {
    testID: accessibilityId,
    style: styles.container,
    edges: ['top']
  }, /*#__PURE__*/React.createElement(_components.TopBar, {
    count: pendingCount
  }), /*#__PURE__*/React.createElement(_reactNative.View, {
    style: styles.banner
  }, /*#__PURE__*/React.createElement(_Typography.Typography.Caption, {
    style: styles.bannerText
  }, "Declining a follow request is irreversible. The user must send a new request if declined.")), /*#__PURE__*/React.createElement(_components.RequestList, {
    hasMore: hasMore,
    loadMore: loadMore,
    isLoading: isLoading,
    requests: pendingRequests,
    isLoadingFirstPage: isLoadingFirstPage
  }));
}
//# sourceMappingURL=PendingFollowRequests.js.map