Download wp-calypso/client/components/add-new-site/context.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 289 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/add-new-site/context.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/components/add-new-site/context.ts
-
curl -L -o context.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/add-new-site/context.ts
289 Bytes
| import { createContext } from 'react'; | |
| import type { AddNewSiteContextInterface } from './types'; | |
| const AddNewSiteContext = createContext< AddNewSiteContextInterface >( { | |
| visibleModalType: '', | |
| setVisibleModalType: () => { | |
| return undefined; | |
| }, | |
| } ); | |
| export default AddNewSiteContext; | |