Download web/context/explore-context.ts from Underground-Digital/Workflow-Engine: direct link, hf CLI and curl.
- Browser
- Download file 604 Bytes
-
https://huggingface.co/spaces/Underground-Digital/Workflow-Engine/resolve/main/web/context/explore-context.ts
- Command line
-
hf download hf://spaces/Underground-Digital/Workflow-Engine/web/context/explore-context.ts
-
curl -L -o explore-context.ts https://huggingface.co/spaces/Underground-Digital/Workflow-Engine/resolve/main/web/context/explore-context.ts
604 Bytes
| import { createContext } from 'use-context-selector' | |
| import type { InstalledApp } from '@/models/explore' | |
| type IExplore = { | |
| controlUpdateInstalledApps: number | |
| setControlUpdateInstalledApps: (controlUpdateInstalledApps: number) => void | |
| hasEditPermission: boolean | |
| installedApps: InstalledApp[] | |
| setInstalledApps: (installedApps: InstalledApp[]) => void | |
| } | |
| const ExploreContext = createContext<IExplore>({ | |
| controlUpdateInstalledApps: 0, | |
| setControlUpdateInstalledApps: () => { }, | |
| hasEditPermission: false, | |
| installedApps: [], | |
| setInstalledApps: () => { }, | |
| }) | |
| export default ExploreContext | |