Download client/src/Providers/FileMapContext.tsx from Zhitomir/chat: direct link, hf CLI and curl.
- Browser
- Download file 311 Bytes
-
https://huggingface.co/spaces/Zhitomir/chat/resolve/main/client/src/Providers/FileMapContext.tsx
- Command line
-
hf download hf://spaces/Zhitomir/chat/client/src/Providers/FileMapContext.tsx
-
curl -L -o FileMapContext.tsx https://huggingface.co/spaces/Zhitomir/chat/resolve/main/client/src/Providers/FileMapContext.tsx
311 Bytes
| import { createContext, useContext } from 'react'; | |
| import { useFileMap } from '~/hooks/Files'; | |
| type FileMapContextType = ReturnType<typeof useFileMap>; | |
| export const FileMapContext = createContext<FileMapContextType>({} as FileMapContextType); | |
| export const useFileMapContext = () => useContext(FileMapContext); | |