MCPcopy
hub / github.com/game1024/OpenSpeedy / useSnackbar

Function useSnackbar

src/contexts/SnackbarContext.tsx:68–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66};
67
68export const useSnackbar = () => {
69 const context = useContext(SnackbarContext);
70 if (!context) {
71 throw new Error('useSnackbar must be used within SnackbarProvider');
72 }
73 return context;
74};

Callers 3

ShortcutFieldFunction · 0.90
SettingsManagerFunction · 0.90
ProcessManagerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected