useChannelPeerSuggestions.ts raw

   1  import useSWR from "swr";
   2  
   3  import { RecommendedChannelPeer } from "src/types";
   4  import { swrFetcher } from "src/utils/swr";
   5  
   6  export function useChannelPeerSuggestions() {
   7    return useSWR<RecommendedChannelPeer[]>(
   8      "/api/channels/suggestions",
   9      swrFetcher
  10    );
  11  }
  12