import CONST from './Tooltip.actionConstants'
export const initialState = {
    title: null,
    isHtmlTitle: false
}
export default function tooltipReducer(state, action) {
    switch (action.type) {
        case CONST.RESET:
            return initialState;

        case CONST.SET_TITLE:
            return Object.assign({}, state, action.data);

    }
    return state;
}