"use strict";

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