{"ast":null,"code":"import { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nvar _jsxFileName = \"/home/alexis/code/sigmajs-org/pages/examples.tsx\";\nimport React from \"react\";\nimport Link from \"next/link\";\nimport Head from \"next/head\";\nimport { getExamples } from \"../lib/examples-api\";\nimport { getExampleURL } from \"../lib/examples-utils\";\nimport PageLayout from \"../components/page-layout\";\n\nconst ExampleThumbnail = ({\n  example\n}) => {\n  return /*#__PURE__*/_jsxDEV(\"article\", {\n    children: /*#__PURE__*/_jsxDEV(\"h2\", {\n      children: /*#__PURE__*/_jsxDEV(Link, {\n        as: getExampleURL(example),\n        href: \"/examples/[example]\",\n        children: /*#__PURE__*/_jsxDEV(\"a\", {\n          children: example.name\n        }, void 0, false, {\n          fileName: _jsxFileName,\n          lineNumber: 15,\n          columnNumber: 11\n        }, this)\n      }, void 0, false, {\n        fileName: _jsxFileName,\n        lineNumber: 14,\n        columnNumber: 9\n      }, this)\n    }, void 0, false, {\n      fileName: _jsxFileName,\n      lineNumber: 13,\n      columnNumber: 7\n    }, this)\n  }, void 0, false, {\n    fileName: _jsxFileName,\n    lineNumber: 12,\n    columnNumber: 5\n  }, this);\n};\n\nconst Blog = ({\n  examples\n}) => /*#__PURE__*/_jsxDEV(PageLayout, {\n  children: [/*#__PURE__*/_jsxDEV(Head, {\n    children: /*#__PURE__*/_jsxDEV(\"title\", {\n      children: \"Examples\"\n    }, void 0, false, {\n      fileName: _jsxFileName,\n      lineNumber: 25,\n      columnNumber: 7\n    }, this)\n  }, void 0, false, {\n    fileName: _jsxFileName,\n    lineNumber: 24,\n    columnNumber: 5\n  }, this), /*#__PURE__*/_jsxDEV(\"h1\", {\n    children: \"Examples\"\n  }, void 0, false, {\n    fileName: _jsxFileName,\n    lineNumber: 28,\n    columnNumber: 5\n  }, this), /*#__PURE__*/_jsxDEV(\"br\", {}, void 0, false, {\n    fileName: _jsxFileName,\n    lineNumber: 29,\n    columnNumber: 5\n  }, this), examples.map(example => /*#__PURE__*/_jsxDEV(ExampleThumbnail, {\n    example: example\n  }, example.name, false, {\n    fileName: _jsxFileName,\n    lineNumber: 31,\n    columnNumber: 7\n  }, this))]\n}, void 0, true, {\n  fileName: _jsxFileName,\n  lineNumber: 23,\n  columnNumber: 3\n}, this);\n\nexport default Blog;\nexport const getStaticProps = async () => {\n  const examples = getExamples();\n  return {\n    props: {\n      examples\n    }\n  };\n};\nexport const config = {\n  unstable_runtimeJS: false\n};","map":{"version":3,"sources":["/home/alexis/code/sigmajs-org/pages/examples.tsx"],"names":["React","Link","Head","getExamples","getExampleURL","PageLayout","ExampleThumbnail","example","name","Blog","examples","map","getStaticProps","props","config","unstable_runtimeJS"],"mappings":";;AAAA,OAAOA,KAAP,MAA0B,OAA1B;AACA,OAAOC,IAAP,MAAiB,WAAjB;AACA,OAAOC,IAAP,MAAiB,WAAjB;AAGA,SAASC,WAAT,QAA4B,qBAA5B;AACA,SAASC,aAAT,QAA8B,uBAA9B;AACA,OAAOC,UAAP,MAAuB,2BAAvB;;AAEA,MAAMC,gBAA0C,GAAG,CAAC;AAAEC,EAAAA;AAAF,CAAD,KAAiB;AAClE,sBACE;AAAA,2BACE;AAAA,6BACE,QAAC,IAAD;AAAM,QAAA,EAAE,EAAEH,aAAa,CAACG,OAAD,CAAvB;AAAkC,QAAA,IAAI,EAAC,qBAAvC;AAAA,+BACE;AAAA,oBAAIA,OAAO,CAACC;AAAZ;AAAA;AAAA;AAAA;AAAA;AADF;AAAA;AAAA;AAAA;AAAA;AADF;AAAA;AAAA;AAAA;AAAA;AADF;AAAA;AAAA;AAAA;AAAA,UADF;AASD,CAVD;;AAYA,MAAMC,IAAiC,GAAG,CAAC;AAAEC,EAAAA;AAAF,CAAD,kBACxC,QAAC,UAAD;AAAA,0BACE,QAAC,IAAD;AAAA,2BACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AADF;AAAA;AAAA;AAAA;AAAA,UADF,eAKE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,UALF,eAME;AAAA;AAAA;AAAA;AAAA,UANF,EAOGA,QAAQ,CAACC,GAAT,CAAcJ,OAAD,iBACZ,QAAC,gBAAD;AAAqC,IAAA,OAAO,EAAEA;AAA9C,KAAuBA,OAAO,CAACC,IAA/B;AAAA;AAAA;AAAA;AAAA,UADD,CAPH;AAAA;AAAA;AAAA;AAAA;AAAA,QADF;;AAcA,eAAeC,IAAf;AAEA,OAAO,MAAMG,cAAc,GAAG,YAAY;AACxC,QAAMF,QAAQ,GAAGP,WAAW,EAA5B;AAEA,SAAO;AACLU,IAAAA,KAAK,EAAE;AACLH,MAAAA;AADK;AADF,GAAP;AAKD,CARM;AAUP,OAAO,MAAMI,MAAM,GAAG;AACpBC,EAAAA,kBAAkB,EAAE;AADA,CAAf","sourcesContent":["import React, { FC } from \"react\";\nimport Link from \"next/link\";\nimport Head from \"next/head\";\n\nimport { Example } from \"../lib/types\";\nimport { getExamples } from \"../lib/examples-api\";\nimport { getExampleURL } from \"../lib/examples-utils\";\nimport PageLayout from \"../components/page-layout\";\n\nconst ExampleThumbnail: FC<{ example: Example }> = ({ example }) => {\n  return (\n    <article>\n      <h2>\n        <Link as={getExampleURL(example)} href=\"/examples/[example]\">\n          <a>{example.name}</a>\n        </Link>\n      </h2>\n    </article>\n  );\n};\n\nconst Blog: FC<{ examples: Example[] }> = ({ examples }) => (\n  <PageLayout>\n    <Head>\n      <title>Examples</title>\n    </Head>\n\n    <h1>Examples</h1>\n    <br />\n    {examples.map((example) => (\n      <ExampleThumbnail key={example.name} example={example} />\n    ))}\n  </PageLayout>\n);\n\nexport default Blog;\n\nexport const getStaticProps = async () => {\n  const examples = getExamples();\n\n  return {\n    props: {\n      examples,\n    },\n  };\n};\n\nexport const config = {\n  unstable_runtimeJS: false,\n};\n"]},"metadata":{},"sourceType":"module"}