{"ast":null,"code":"var __jsx = React.createElement;\nimport React from 'react';\nimport { defDocType } from '@component-controls/core';\nimport { DocumentHomePage } from '@component-controls/app';\nimport { Layout, store, getHomePagesPaths, getDocHomePage } from '@component-controls/nextjs-plugin';\n\nconst DocHomeTemplate = ({\n  type = defDocType,\n  docId,\n  storyId\n}) => {\n  return __jsx(Layout, {\n    docId: docId,\n    storyId: storyId\n  }, __jsx(DocumentHomePage, {\n    type: type\n  }));\n};\n\nexport const getStaticPaths = async () => {\n  return {\n    paths: getHomePagesPaths(store),\n    fallback: false\n  };\n};\nexport const getStaticProps = async ({\n  params\n}) => {\n  const {\n    doctype: basepath\n  } = params;\n  const page = getDocHomePage(store, basepath);\n  const {\n    type = null,\n    docId = null,\n    storyId = null\n  } = page || {};\n  return {\n    props: {\n      docId,\n      storyId,\n      type\n    }\n  };\n};\nexport default DocHomeTemplate;","map":null,"metadata":{},"sourceType":"module"}