MCPcopy
hub / github.com/tone-row/flowchart-fun / useHasProAccess

Function useHasProAccess

app/src/lib/hooks.ts:64–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62 * based on their subscription existence and status.
63 */
64export function useHasProAccess() {
65 const { customer } = useContext(AppContext);
66 const status = customer?.subscription?.status;
67 return status && ["trialing", "active"].includes(status);
68}
69
70/**
71 * Use this to determine if they were a pro user.

Callers 15

DownloadDropdownFunction · 0.90
ShareDialogFunction · 0.90
CloneButtonFunction · 0.90
FlowchartHeaderFunction · 0.90
SaveButtonFunction · 0.90
RenameButton.tsxFile · 0.90
ConvertToFlowchartFunction · 0.90
SvgProOnlyPopoverFunction · 0.90
ActionsFunction · 0.90
WithGraph.tsxFile · 0.90
EditWithAIFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected