/* * SPDX-FileCopyrightText: syuilo and misskey-project * SPDX-License-Identifier: AGPL-3.0-only */ import { comment, defaultDescription } from '@/server/web/views/_.js'; import { Splash } from '@/server/web/views/_splash.js'; import type { CommonProps } from '@/server/web/views/_.js'; import type { PropsWithChildren, Children } from '@kitajs/html'; export function Layout(props: PropsWithChildren>) { const now = Date.now(); // 変数名をsafeで始めることでエラーをスキップ const safeMetaJson = props.metaJson; const safeClientCtxJson = props.clientCtxJson; return ( <> {''} {comment} {props.serverErrorImageUrl != null ? : null} {props.infoImageUrl != null ? : null} {props.notFoundImageUrl != null ? : null} {!props.config.frontendManifestExists ? : null} {props.config.frontendEntry.css != null ? props.config.frontendEntry.css.map((href) => ( )) : null} {props.titleSlot ?? {props.title || 'Misskey'}} {props.noindex ? : null} {props.descSlot ?? (props.desc != null ? : null)} {props.metaSlot} {props.ogSlot ?? ( <> {props.img != null ? : null} )} {props.frontendBootloaderCss != null ? : } {safeMetaJson != null ? : null} {safeClientCtxJson != null ? : null} {props.frontendBootloaderJs != null ? : } {props.children} ); } export { Layout as BasePage };