/* * SPDX-FileCopyrightText: syuilo and misskey-project * SPDX-License-Identifier: AGPL-3.0-only */ import { comment } from '@/server/web/views/_.js'; import type { CommonProps } from '@/server/web/views/_.js'; import { Splash } from '@/server/web/views/_splash.js'; import type { PropsWithChildren, Children } from '@kitajs/html'; export function BaseEmbed(props: PropsWithChildren>) { const now = Date.now(); // 変数名をsafeで始めることでエラーをスキップ const safeMetaJson = props.metaJson; const safeEmbedCtxJson = props.embedCtxJson; return ( <> {''} {comment} {!props.config.frontendEmbedManifestExists ? : null} {props.config.frontendEmbedEntry.css != null ? props.config.frontendEmbedEntry.css.map((href) => ( )) : null} {props.titleSlot ?? {props.title || 'Misskey'}} {props.metaSlot} {props.frontendEmbedBootloaderCss != null ? : } {safeMetaJson != null ? : null} {safeEmbedCtxJson != null ? : null} {props.frontendEmbedBootloaderJs != null ? : } {props.children} ); }