Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
import { registerStore } from '@wordpress/data';
import { controls } from '@wordpress/data-controls';
import { registerPlugins } from '../plugins';
import * as actions from './actions';
import { STORE_KEY } from './constants';
import reducer, { State } from './reducer';
import * as selectors from './selectors';
import type { SelectFromMap } from '../mapped-types';
export type { State };
export type StepperInternalSelect = SelectFromMap< typeof selectors >;
export function register(): typeof STORE_KEY {
registerPlugins();
registerStore( STORE_KEY, {
actions,
controls,
reducer,
selectors,
persist: [ 'stepData' ],
} );
return STORE_KEY;
}