import React, { FC } from 'react'; import { GetStaticProps } from 'next'; import { DocType, defDocType } from '@component-controls/core'; import { DocPage } from '@component-controls/app'; import { Layout, store, getIndexPage } from '@component-controls/nextjs-plugin'; interface PageListProps { type: DocType; docId?: string; } const HomePage: FC = ({ type = defDocType, docId }) => { return ( ); }; export const getStaticProps: GetStaticProps = async () => { const homePage = getIndexPage(store); const { docId = null, type = null } = homePage; return { props: { docId, type } }; }; export default HomePage;