// Search
export const SEARCH_TEXT_MAX_LENGTH = 100;

// Status Select
export const STATUSES_ALL = null;
export const STATUSES_ACTIVE = 1;
export const STATUSES_INACTIVE = 0;

export const STATUSES_OPTIONS = [
  { label: 'Enabled', value: STATUSES_ACTIVE },
  { label: 'Disabled', value: STATUSES_INACTIVE },
];

// Table header
export const TABLE_HEADER = [
  {
    id: 'id',
    label: 'Id',
    sortable: true,
    width: '100',
  },
  {
    id: 'account',
    label: 'Account',
    sortable: true,
    width: '200',
  },
  {
    id: 'lookerReportId',
    label: 'Looker Dashboard ID',
    sortable: true,
    width: '156',
  },
  {
    id: 'uiName',
    label: 'Name',
    sortable: true,
    width: '115',
  },
  {
    id: 'description',
    label: 'Description',
    sortable: true,
    width: '115',
  },
  {
    id: 'enabled',
    label: 'Status',
    sortable: true,
    width: '115',
  },
  {
    id: 'updatedBy',
    label: 'Updated By',
    sortable: true,
    width: '150',
  },
  {
    id: 'updatedAt',
    label: 'Updated Date',
    sortable: true,
    width: '240',
  },
];

export const ROWS_PER_PAGE_DEFAULT = 15;

export const TABLE_SORT_BY = 'updatedAt';

export const TABLE_REDUX_FIELD_NAME = 'commonTable';
