UNPKG

@selfcommunity/react-ui

Version:

React UI Components to integrate a Community created with SelfCommunity Platform.

31 lines (30 loc) 822 B
/** * @hidden * We have complex state logic that involves multiple sub-values, * so useReducer is preferable to useState. * Define all possible auth action types label * Use this to export actions and dispatch an action */ export declare const actionWidgetTypes: { LOADING_NEXT: string; LOADING_PREVIOUS: string; LOAD_NEXT_SUCCESS: string; LOAD_PREVIOUS_SUCCESS: string; LOAD_NEXT_FAILURE: string; LOAD_PREVIOUS_FAILURE: string; SET_RESULTS: string; SET_VISIBLE_ITEMS: string; INITIALIZE: string; RESET: string; }; /** * Manage tools state reducer * @param state * @param action */ export declare function dataWidgetReducer(state: any, action: any): any; /** * Define initial tools state * @param data */ export declare function stateWidgetInitializer(data: any): any;