import { useState } from 'react';
import { UserRelationshipTab } from '../../../../types';
import { useUser } from '../../../../hooks/objects';
import { useStyles } from '../styles';
export function useUserRelationship({
  userId,
  selectedTab = UserRelationshipTab.following
}) {
  const {
    styles
  } = useStyles();
  const {
    user
  } = useUser({
    userId
  });
  const [activeTab, setActiveTab] = useState(selectedTab);
  return {
    styles,
    activeTab,
    setActiveTab,
    displayName: user === null || user === void 0 ? void 0 : user.displayName
  };
}
//# sourceMappingURL=useUserRelationship.js.map