import { StateItem } from 'src/layouts/w2w-toolbar/W2WToolbarConfig';

export const getDefaultView = () => ({
  idLayoutGroup: null,
  position: 0,
  title: '',
  idLayoutView: '',
  view: null,
  widgets: [],
  actionsGroups: [],
  batchActions: [],
  columns: [],
  filters: [],
  class: '',
  style: '',
  visibilityFn: '',
  rowClickFn: '({ router, rol, row }) => { console.log(row) }',
  tab: { to: '', name: '', label: '' },
  states: {
    items: [] as StateItem[],
    loadUrl: '',
    queryUrl: '',
    dynamic: false,
    visibility: null,
    filterToApply: null,
    useEstadosGama: false,
    counterType: 'estado',
  },
  query: {
    url: '',
    baseQueryParams: {},
    initialPagination: {},
    keysToCompareTerms: null,
  },
  showGrid: false,
  templates: {
    mobile: '',
    grid: '',
  },
});
