From 98abcc023b99898f3a7e182e2330ea809a4c99e2 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 12 Jan 2025 19:43:59 +0900 Subject: refactor(blog/nuldoc): convert components/*.ts to TSX --- vhosts/blog/nuldoc-src/components/PageLayout.tsx | 63 ++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 vhosts/blog/nuldoc-src/components/PageLayout.tsx (limited to 'vhosts/blog/nuldoc-src/components/PageLayout.tsx') diff --git a/vhosts/blog/nuldoc-src/components/PageLayout.tsx b/vhosts/blog/nuldoc-src/components/PageLayout.tsx new file mode 100644 index 00000000..c7145e0a --- /dev/null +++ b/vhosts/blog/nuldoc-src/components/PageLayout.tsx @@ -0,0 +1,63 @@ +import { Config } from "../config.ts"; +import { JSXNode } from "myjsx/jsx-runtime"; +import StaticStylesheet from "./StaticStylesheet.tsx"; + +type Props = { + metaCopyrightYear: number; + metaDescription: string; + metaKeywords?: string[]; + metaTitle: string; + metaAtomFeedHref?: string; + requiresSyntaxHighlight?: boolean; + config: Config; + children: JSXNode; +}; + +export default function PageLayout( + { + metaCopyrightYear, + metaDescription, + metaKeywords, + metaTitle, + metaAtomFeedHref, + requiresSyntaxHighlight, + config, + children, + }: Props, +) { + return ( + + + + + + + + {metaKeywords && metaKeywords.length !== 0 && + } + + + + + + {metaAtomFeedHref && + ( + + )} + + {metaTitle} + + {requiresSyntaxHighlight && + } + + {children} + + ); +} -- cgit v1.2.3-70-g09d2