{"ast":null,"code":"import { jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport React from 'react';\nimport Head from 'next/head';\nimport BuildHeader from '../../components/header.js';\nexport var __N_SSP = true;\nexport default function buildNews(fulldataset) {\n  var newsArticle = fulldataset.fulldataset.newsArticleData;\n  var headerData = fulldataset.fulldataset.headerdata; //console.log(newsArticle.newsBody)\n\n  var newsData = [];\n\n  for (var paragraph in newsArticle.newsBody) {\n    newsData.push( /*#__PURE__*/_jsx(\"p\", {\n      className: \"mb-2 pl-2\",\n      children: newsArticle.newsBody[paragraph]\n    }));\n  }\n\n  return /*#__PURE__*/_jsxs(\"div\", {\n    children: [/*#__PURE__*/_jsx(Head, {\n      children: /*#__PURE__*/_jsx(\"title\", {\n        children: \"Goallinestats - \" + headerData['header'] + \" News Page\"\n      })\n    }), /*#__PURE__*/_jsx(BuildHeader, {\n      headerData: headerData\n    }), /*#__PURE__*/_jsx(\"div\", {\n      className: \"container mx-auto\",\n      children: /*#__PURE__*/_jsxs(\"div\", {\n        className: \"my-4\",\n        children: [/*#__PURE__*/_jsx(\"h2\", {\n          className: \"text-3xl\",\n          children: newsArticle.newsTitle\n        }), /*#__PURE__*/_jsx(\"h3\", {\n          className: \"text-md mb-4 pl-4 text-gray-400\",\n          children: \"Written by \" + newsArticle.newsAuthor + \" on \" + newsArticle.newsDate\n        }), newsData]\n      })\n    })]\n  });\n}","map":null,"metadata":{},"sourceType":"module"}