--- import { Image } from "astro:assets"; import type { WebmentionsChildren } from "@/types"; import { Icon } from "astro-icon/components"; interface Props { mentions: WebmentionsChildren[]; } const { mentions } = Astro.props; const validComments = ["mention-of", "in-reply-to"]; const comments = mentions.filter( (mention) => validComments.includes(mention["wm-property"]) && mention.content?.text, ); --- { !!comments.length && (
) }