{"ast":null,"code":"import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nimport Head from 'next/head';\nimport React from 'react';\nimport BuildHeader from '../../components/header.js';\nimport MakeTable from '../../components/table.js';\n\nfunction StandingsTableGroup(_ref) {\n  var props = _ref.props;\n  return props.map(function (levelsTable, index) {\n    return /*#__PURE__*/_jsxs(\"div\", {\n      className: \"container mx-auto p-2\",\n      id: \"standingstable\",\n      children: [/*#__PURE__*/_jsx(\"h1\", {\n        className: \"text-xl font-bold\",\n        children: levelsTable['level']\n      }), /*#__PURE__*/_jsx(StandingsTable, {\n        props: levelsTable['datalevel']\n      })]\n    }, index);\n  });\n}\n\nfunction StandingsTable(_ref2) {\n  var props = _ref2.props;\n  //console.log(props[0])\n  return props.map(function (dataTable) {\n    return /*#__PURE__*/_jsxs(\"div\", {\n      children: [/*#__PURE__*/_jsx(\"h2\", {\n        className: \"text-lg font-bold\",\n        children: dataTable.subseason\n      }), /*#__PURE__*/_jsx(\"h3\", {\n        children: dataTable['division']\n      }), /*#__PURE__*/_jsxs(\"div\", {\n        className: \"grid grid-cols-1 md:grid-cols-3\",\n        children: [/*#__PURE__*/_jsx(\"div\", {\n          className: \"sm:col-span-2\",\n          children: /*#__PURE__*/_jsx(MakeTable, {\n            currentset: dataTable\n          })\n        }), /*#__PURE__*/_jsxs(\"div\", {\n          className: \"sm:col-span-1\",\n          children: [dataTable['playoffkey'], dataTable['playoffdetails']]\n        })]\n      })]\n    });\n  });\n}\n\nfunction standingsPage(_ref3) {\n  var fulldataset = _ref3.fulldataset;\n  //console.log(fulldataset.currentdataset)\n  return /*#__PURE__*/_jsxs(\"div\", {\n    id: \"standingsoutput\",\n    children: [/*#__PURE__*/_jsx(Head, {\n      children: /*#__PURE__*/_jsx(\"title\", {\n        children: \"Goallinestats - \" + fulldataset.headerdata['header'] + \" Standings\"\n      })\n    }), /*#__PURE__*/_jsx(BuildHeader, {\n      headerData: fulldataset.headerdata\n    }), /*#__PURE__*/_jsx(\"div\", {\n      className: \"container mx-auto\",\n      children: /*#__PURE__*/_jsx(StandingsTableGroup, {\n        props: fulldataset.currentdataset\n      })\n    })]\n  });\n}\n\nexport var __N_SSP = true;\nexport default standingsPage;","map":null,"metadata":{},"sourceType":"module"}