{"ast":null,"code":"import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nimport React from 'react';\nimport MakeTable from '../components/table.js';\n\nfunction buildStandingsTable(dataset) {\n  return /*#__PURE__*/_jsxs(\"div\", {\n    children: [/*#__PURE__*/_jsx(\"h2\", {\n      className: \"p-2 text-2xl\",\n      children: dataset.cardHeader\n    }), /*#__PURE__*/_jsx(MakeTable, {\n      className: \"p-2\",\n      currentset: dataset\n    })]\n  });\n}\n\nexport default function createStandings(standingsData) {\n  if (standingsData.length > 0) {\n    var builtStandingsTables = [];\n\n    for (var standingstables = 0; standingstables < standingsData.length; standingstables++) {\n      //console.log(standingsData[standingstables]);\n      builtStandingsTables.push(buildStandingsTable(standingsData[standingstables]));\n    }\n\n    var standingsOutput = /*#__PURE__*/_jsxs(\"div\", {\n      children: [/*#__PURE__*/_jsx(\"h5\", {\n        className: \"text-3xl\",\n        children: \"Standings\"\n      }), builtStandingsTables]\n    });\n  } else {\n    var standingsOutput = null;\n  }\n\n  return standingsOutput;\n}","map":null,"metadata":{},"sourceType":"module"}