"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.useUserRelationship = useUserRelationship;
var _react = require("react");
var _types = require("../../../../types");
var _objects = require("../../../../hooks/objects");
var _styles = require("../styles");
function useUserRelationship({
  userId,
  selectedTab = _types.UserRelationshipTab.following
}) {
  const {
    styles
  } = (0, _styles.useStyles)();
  const {
    user
  } = (0, _objects.useUser)({
    userId
  });
  const [activeTab, setActiveTab] = (0, _react.useState)(selectedTab);
  return {
    styles,
    activeTab,
    setActiveTab,
    displayName: user === null || user === void 0 ? void 0 : user.displayName
  };
}
//# sourceMappingURL=useUserRelationship.js.map