Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
Raw History Blame Contribute Delete
414 Bytes
import { SECTION_SET, SECTION_LOADING_SET } from 'calypso/state/action-types';
import 'calypso/state/ui/init';
export function setSection( section, options = {} ) {
const action = {
...options,
type: SECTION_SET,
};
if ( section ) {
action.section = section;
}
return action;
}
export function setSectionLoading( isSectionLoading ) {
return {
type: SECTION_LOADING_SET,
isSectionLoading,
};
}