import { withProps } from 'recompose';
import Component from './download-menu-component';

const { S3_BUCKET_NAME } = process.env;

const server = `http://${S3_BUCKET_NAME}.s3.amazonaws.com`;
const folder = '/climate-watch-download-zip';
const url = `${server}${folder}`;

// The NDC quantification and pathway files should not be made public
// before the functionality and data are available on production site
// {
//   label: 'NDC quantification (367 kB)',
//   link: `${url}/ndc-quantification.zip`,
//   target: '_self'
// },
// {
//   label: 'Pathways (2.1 MB)',
//   link: `${url}/pathways.zip`,
//   target: '_self'
// }

const downloadMenuOptions = [
  {
    label: 'All (12.3 MB)',
    link: `${url}/all.zip`,
    target: '_self'
  },
  {
    label: 'NDC Content (6.4 MB)',
    link: `${url}/ndc-content.zip`,
    target: '_self'
  },
  {
    label: 'GHG emissions (3.5 MB)',
    link: `${url}/ghg-emissions.zip`,
    target: '_self'
  },
  {
    label: 'Adaptation (357 kB)',
    link: `${url}/adaptation.zip`,
    target: '_self'
  },
  {
    label: 'Socioeconomic (450 kB)',
    link: `${url}/socioeconomic-indicators.zip`,
    target: '_self'
  }
];

const withOptions = withProps(() => ({
  downloadMenuOptions
}));

export default withOptions(Component);

@@ -523,107 +523,8 @@
 lf'%0A
-// %7D,%0A// %7B%0A//   label: 'Pathways (2.1 MB)',%0A//   link: %60$%7Burl%7D/pathways.zip%60,%0A//   target: '_self'%0A
 // %7D
@@ -1052,16 +1052,110 @@
 '_self'%0A
+  %7D,%0A  %7B%0A    label: 'Pathways (2.1 MB)',%0A    link: %60$%7Burl%7D/pathways.zip%60,%0A    target: '_self'%0A
   %7D%0A%5D;%0A%0A

Include pathways download link