"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.useFollowerCollection = useFollowerCollection;
var _tsSdkReactNative = require("@amityco/ts-sdk-react-native");
var _useLiveCollection = require("../useLiveCollection");
function useFollowerCollection({
  userId,
  limit = 20,
  status = 'accepted'
}) {
  const {
    items,
    ...rest
  } = (0, _useLiveCollection.useLiveCollection)({
    fetcher: _tsSdkReactNative.UserRepository.Relationship.getFollowers,
    params: {
      userId,
      limit,
      status
    },
    enabled: !!userId
  });
  return {
    ...rest,
    followers: items
  };
}
//# sourceMappingURL=useFollowerCollection.js.map