Spaces:
Running
Running
Download src/context/context.ts from Samfredoly/jor: direct link, hf CLI and curl.
- Browser
- Download file 626 Bytes
-
https://huggingface.co/spaces/Samfredoly/jor/resolve/main/src/context/context.ts
- Command line
-
hf download hf://spaces/Samfredoly/jor/src/context/context.ts
-
curl -L -o context.ts https://huggingface.co/spaces/Samfredoly/jor/resolve/main/src/context/context.ts
626 Bytes
| import { createContext } from 'react' | |
| import type { ScreenName } from '../types' | |
| export type InvestigationIntent = { kind: 'trace' | 'compare' | 'mentor' | 'scratchpad'; runId?: string; metric?: string; question?: string } | null | |
| export type AppContextValue = { | |
| activeScreen: ScreenName | |
| setActiveScreen: (screen: ScreenName) => void | |
| toast: string | |
| notify: (message: string) => void | |
| investigationIntent: InvestigationIntent | |
| openInvestigation: (intent: NonNullable<InvestigationIntent>) => void | |
| clearInvestigationIntent: () => void | |
| } | |
| export const AppContext = createContext<AppContextValue | undefined>(undefined) | |