MCPcopy
hub / github.com/srcbookdev/srcbook / useSettings

Function useSettings

packages/web/src/components/use-settings.tsx:113–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111}
112
113export function useSettings() {
114 const context = useContext(SettingsContext);
115
116 if (!context) {
117 throw new Error('useSettings must be used within a SettingsProvider');
118 }
119
120 return context;
121}

Callers 9

MailingListCardFunction · 0.90
GenerateSrcbookModalFunction · 0.90
GenerateAiCellFunction · 0.90
ControlledCodeCellFunction · 0.90
SessionMenuPanelSettingsFunction · 0.90
SettingsFunction · 0.90
AiInfoBannerFunction · 0.90
AiSettingsFunction · 0.90
OpenRouterModelSelectorFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected