Spaces:
Sleeping
Sleeping
Download src/components/base/Select/SelectContext.tsx from bradduy/edtechdemo: direct link, hf CLI and curl.
- Browser
- Download file 278 Bytes
-
https://huggingface.co/spaces/bradduy/edtechdemo/resolve/main/src/components/base/Select/SelectContext.tsx
- Command line
-
hf download hf://spaces/bradduy/edtechdemo/src/components/base/Select/SelectContext.tsx
-
curl -L -o SelectContext.tsx https://huggingface.co/spaces/bradduy/edtechdemo/resolve/main/src/components/base/Select/SelectContext.tsx
278 Bytes
| 'use client'; | |
| import * as React from 'react'; | |
| export const SelectContext = React.createContext<SelectContextType | undefined>(undefined); | |
| type SelectContextType = { | |
| open: boolean; | |
| setOpen: (open: boolean) => void; | |
| value: string; | |
| onChange: (value: string) => void; | |
| }; | |