MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / useOffers

Function useOffers

packages/web/src/features/billing/useOffers.ts:7–16  ·  view source on GitHub ↗
(params?: {
    retry: number,
})

Source from the content-addressed store, hash-verified

5import { useQuery } from "@tanstack/react-query";
6
7export const useOffers = (params?: {
8 retry: number,
9}) => {
10 return useQuery({
11 queryKey: ["offers"],
12 queryFn: async () => unwrapServiceError(getOffers()),
13 retry: params?.retry,
14 refetchOnWindowFocus: false
15 });
16}

Callers 5

UpsellDialogFunction · 0.90
UpsellPanelFunction · 0.90
UpgradeButtonFunction · 0.90
useTrialStepCopyFunction · 0.90
TrialStepFunction · 0.90

Calls 2

unwrapServiceErrorFunction · 0.90
getOffersFunction · 0.90

Tested by

no test coverage detected