import { useQuery } from '@tanstack/react-query';
import useAuth from './useAuth';
const STALE_TIME_5_MINUTES = 5 * 60 * 1000;
export default function useSocialSettings() {
  const {
    client
  } = useAuth();
  const {
    error,
    isLoading,
    data: socialSettings
  } = useQuery({
    queryKey: ['asc-uikit', 'SocialSettings'],
    queryFn: async () => {
      const settings = await (client === null || client === void 0 ? void 0 : client.getSocialSettings());
      return settings;
    },
    enabled: !!client,
    staleTime: STALE_TIME_5_MINUTES
  });
  return {
    socialSettings,
    isLoading,
    error
  };
}
//# sourceMappingURL=useSocialSettings.js.map