"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.useFollowInfo = useFollowInfo;
var _tsSdkReactNative = require("@amityco/ts-sdk-react-native");
var _useLiveObject = _interopRequireDefault(require("../useLiveObject"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
function useFollowInfo({
  userId,
  enabled = true
}) {
  const {
    item,
    ...rest
  } = (0, _useLiveObject.default)({
    fetcher: _tsSdkReactNative.UserRepository.Relationship.getFollowInfo,
    params: userId,
    enabled: enabled && !!userId
  });
  return {
    followInfo: item,
    ...rest
  };
}
//# sourceMappingURL=useFollowInfo.js.map