/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import type { Packed } from '@/misc/json-schema.js';
import type { MiUserProfile } from '@/models/UserProfile.js';
import type { CommonProps } from '@/server/web/views/_.js';
import { Layout } from '@/server/web/views/base.js';
export function GalleryPostPage(props: CommonProps<{
galleryPost: Packed<'GalleryPost'>;
profile: MiUserProfile;
}>) {
function ogBlock() {
return (
<>
{props.galleryPost.description != null ? : null}
{props.galleryPost.isSensitive && props.galleryPost.user.avatarUrl ? (
<>
>
) : null}
{!props.galleryPost.isSensitive && props.galleryPost.files != null ? (
<>
>
) : null}
>
);
}
function metaBlock() {
return (
<>
{props.profile.noCrawle ? : null}
{props.profile.preventAiLearning ? (
<>
>
) : null}
>
);
}
return (
);
}