Download client/src/reducers/sendFile.js from linuxrun/deer: direct link, hf CLI and curl.
- Browser
- Download file 370 Bytes
-
https://huggingface.co/spaces/linuxrun/deer/resolve/main/client/src/reducers/sendFile.js
- Command line
-
hf download hf://spaces/linuxrun/deer/client/src/reducers/sendFile.js
-
curl -L -o sendFile.js https://huggingface.co/spaces/linuxrun/deer/resolve/main/client/src/reducers/sendFile.js
370 Bytes
| import produce from 'immer'; | |
| import * as types from '../common/actionTypes'; | |
| const initialState = { | |
| recvCode: '', | |
| }; | |
| const fileReducer = produce((draft = initialState, action) => { | |
| switch (action.type) { | |
| case types.UPDATE_SEND_FILE_INFO: { | |
| draft.recvCode = action.payload.recvCode; | |
| break; | |
| } | |
| } | |
| return draft; | |
| }); | |
| export default fileReducer; | |