2022-04-04 11:22:00 +05:30
|
|
|
import { getCookie } from '~/lib/utils/common_utils';
|
2021-04-17 20:07:23 +05:30
|
|
|
import { VIEW_TYPES } from '../constants';
|
|
|
|
|
2022-04-04 11:22:00 +05:30
|
|
|
const diffViewType = getCookie('diff_view');
|
2021-04-17 20:07:23 +05:30
|
|
|
|
|
|
|
export default () => ({
|
|
|
|
isLoading: true,
|
|
|
|
hasError: false,
|
|
|
|
isSubmitting: false,
|
|
|
|
isParallel: diffViewType === VIEW_TYPES.PARALLEL,
|
|
|
|
diffViewType,
|
|
|
|
conflictsData: {},
|
|
|
|
});
|