diff --git a/components/Layout/index.jsx b/components/Layout/index.jsx new file mode 100644 index 0000000..21295cc --- /dev/null +++ b/components/Layout/index.jsx @@ -0,0 +1,45 @@ +import TableOfContents from '@node-core/ui-components/Common/TableOfContents'; +import Article from '@node-core/ui-components/Containers/Article'; +import { Analytics } from '@vercel/analytics/react'; +import { SpeedInsights } from '@vercel/speed-insights/react'; + +import NavBar from '../Navigation'; +import MetaBar from '../Metabar'; +import SideBar from '../Sidebar'; + +import Footer from '#theme/Footer'; + +/** + * @typedef {Object} Props + * @property {import('@node-core/doc-kit/src/generators/web/ui/types.d.ts').SerializedMetadata} metadata + * @property {Array} headings + * @property {string} readingTime + * @property {import('preact').ComponentChildren} children + */ + +/** + * @param {Props} props + */ +export default ({ metadata, headings, readingTime, children }) => ( + <> + + + +
+ +
+
+ +
+
{children}
+
+ +
+
+