Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
import { COMMAND_PALETTE_CLOSE, COMMAND_PALETTE_OPEN } from 'calypso/state/action-types';
import type { AnyAction } from 'redux';
const initialState = {
isCommandPaletteOpen: false,
};
const commandPaletteReducer = ( state = initialState, action: AnyAction ) => {
switch ( action.type ) {
case COMMAND_PALETTE_OPEN:
return { ...state, isCommandPaletteOpen: true };
case COMMAND_PALETTE_CLOSE:
return { ...state, isCommandPaletteOpen: false };
default:
return state;
}
};
export default commandPaletteReducer;