2020-11-24 15:15:51 +05:30
|
|
|
export default ({ defaultState = null, customState = {} } = {}) => {
|
|
|
|
const override = defaultState !== null ? defaultState.id !== customState.inheritFromId : false;
|
2020-07-28 23:09:34 +05:30
|
|
|
|
|
|
|
return {
|
|
|
|
override,
|
2020-11-24 15:15:51 +05:30
|
|
|
defaultState,
|
2020-07-28 23:09:34 +05:30
|
|
|
customState,
|
2020-11-24 15:15:51 +05:30
|
|
|
isSaving: false,
|
|
|
|
isTesting: false,
|
2020-07-28 23:09:34 +05:30
|
|
|
};
|
|
|
|
};
|