Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame
385 Bytes
import * as reducerType from '../../unit/reducerType';
import { lastRecord } from '../../unit/const';
const initState = lastRecord && lastRecord.pause !== undefined ? !!lastRecord.pause : false;
const pause = (state = initState, action) => {
switch (action.type) {
case reducerType.PAUSE:
return action.data;
default:
return state;
}
};
export default pause;