Home Reference Source

src/parse/addSpilloverAssessment.js

  1. import { addAssessment } from "./addAssessment";
  2. import { SPILLOVER_ASSESSMENT_ID } from "../assessments/config";
  3.  
  4. /**
  5. * Add the spillover assessment to the store
  6. * @param {Object} [params] -
  7. * any custom parameters to add to the assessment or default properties to
  8. * overwrite
  9. * @return {Object} the spillover assessment that was added to the store
  10. */
  11. export const addSpilloverAssessment = (params = {}) =>
  12. addAssessment({
  13. id: SPILLOVER_ASSESSMENT_ID,
  14. dataId: SPILLOVER_ASSESSMENT_ID,
  15. slug: "spillovers",
  16. label: "Spillover score",
  17. description:
  18. "Each country's actions can have positive or negative effects on other countries' abilities to achieve the SDGs. The Spillover Index assesses such spillovers along three dimensions: environmental & social impacts embodied into trade, economy & finance, and security. A higher score means that a country causes more positive and fewer negative spillover effects.",
  19. type: "custom",
  20. ...params,
  21. });