export const getConfigHeaders = () =>
  [
    {
      id: 'time',
      label: 'Date',
      sortable: true,
    },
    {
      id: 'playerLoads',
      label: 'Player Loads',
      align: 'center',
      sortable: true,
    },
    {
      id: 'videoAdImpressions',
      label: 'Ad Impressions',
      align: 'center',
      colspan: 2,
    },
    {
      id: 'publisherVideoRevenue',
      label: 'Revenue',
      align: 'center',
      colspan: 2,
    },
    {
      id: 'platformFee',
      label: 'Platform Fees',
      align: 'center',
      sortable: true,
    },
    {
      id: 'netRevenue',
      label: 'Net Revenue',
      align: 'center',
      sortable: true,
    },
    {
      id: 'rpm',
      label: 'Player Loads RPM',
      align: 'center',
      tooltip: 'Net Revenue/Player Loads',
      sortable: true,
    },
  ].filter(Boolean);

export const getConfigSubHeaders = () =>
  [
    {
      id: 'time',
      label: '',
    },
    {
      id: 'playerLoads',
      label: '',
    },
    {
      id: 'videoAdImpressions',
      label: 'Video',
      sortable: true,
      align: 'right',
    },
    {
      id: 'displayAdImpressions',
      label: 'Display',
      sortable: true,
      align: 'right',
    },
    {
      id: 'publisherVideoRevenue',
      label: 'Publisher Demand',
      sortable: true,
      align: 'right',
    },
    {
      id: 'anyclipVideoRevenue',
      label: 'Anyclip Demand',
      sortable: true,
      align: 'right',
    },
    {
      id: 'platformFee',
      label: '',
    },
    {
      id: 'netRevenue',
      label: '',
    },
    {
      id: 'rpm',
      label: '',
    },
  ].filter(Boolean);
