Download spectrum/src/actions/gallery.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 300 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/actions/gallery.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/src/actions/gallery.js
-
curl -L -o gallery.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/actions/gallery.js
300 Bytes
| //@flow | |
| /** | |
| * Open the gallery at a certain image | |
| */ | |
| export const openGallery = (threadId: string, messageId: string) => { | |
| return { | |
| type: 'SHOW_GALLERY', | |
| isOpen: true, | |
| threadId, | |
| messageId, | |
| }; | |
| }; | |
| export const closeGallery = () => { | |
| return { | |
| type: 'HIDE_GALLERY', | |
| }; | |
| }; | |