export const TABLE_HEADERS_KEYS = [
  {
    id: 'name',
    label: 'Name',
    isSortable: true,
  },
  {
    id: 'key',
    label: 'Key',
  },
  {
    id: 'updatedBy',
    label: 'Updated By',
    isSortable: true,
  },
  {
    id: 'updated',
    label: 'Updated Date',
    isSortable: true,
  },
  {
    id: 'status',
    label: 'Status',
  },
];

export const TABLE_HEADERS_LISTS = [
  {
    id: 'name',
    label: 'Name',
    isSortable: true,
  },
  {
    id: 'keys',
    label: 'Values',
  },
  {
    id: 'updatedBy',
    label: 'Updated By',
    isSortable: true,
  },
  {
    id: 'updated',
    label: 'Updated Date',
    isSortable: true,
  },
  {
    id: 'daccountName',
    label: 'Demand Partner',
    isSortable: true,
  },
  {
    id: 'status',
    label: 'Status',
  },
  {
    id: 'actions',
    label: '',
    autoWidth: true,
    padding: 'none',
  },
];

export const PAGE_CONFIG = {
  keys: {
    link: '/key-lists/keys',
    addButtonText: 'Key',
    tableHeaders: TABLE_HEADERS_KEYS,
  },
  lists: {
    link: '/key-lists/lists',
    addButtonText: 'Value List',
    tableHeaders: TABLE_HEADERS_LISTS,
  },
};

export const TABS = [
  {
    label: 'Keys',
    value: 'VALUES',
    link: PAGE_CONFIG.keys.link,
  },
  {
    label: 'Value Lists',
    value: 'LISTS',
    link: PAGE_CONFIG.lists.link,
  },
];

export const TABS_SELF_SERVE = [
  {
    label: 'Value Lists',
    value: 'LISTS',
    link: PAGE_CONFIG.lists.link,
  },
];

export const STATUS_FILTERS = [
  {
    label: 'All',
    value: 'ALL',
  },
  {
    label: 'Active',
    value: 'ACTIVE',
    icon: 'active',
  },
  {
    label: 'Disabled',
    value: 'DISABLED',
    icon: 'disabled',
  },
];

export const BULK_ACTIONS = [
  {
    label: 'Activate',
    value: 'ACTIVE',
  },
  {
    label: 'Disable',
    value: 'DISABLED',
  },
];

export const KEY_LIST_FORM = 'KEY_LIST_FORM';
export const FORM_REDUX_FIELD_NAME = 'commonForm';

export const KEY_VALUE_FORM = 'KEY_VALUE_FORM';
export const VALUE_FORM_REDUX_FIELD_NAME = 'VALUE_FORM_REDUX_FIELD_NAME';
