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