From b6e440699e9fca474869bf74ce09f2310f05c620 Mon Sep 17 00:00:00 2001 From: Dawid Rycerz Date: Tue, 13 Jan 2026 20:06:15 +0100 Subject: Cleanup unused functionalities --- src/components/blog/webmentions/Comments.astro | 90 -------------------------- 1 file changed, 90 deletions(-) delete mode 100644 src/components/blog/webmentions/Comments.astro (limited to 'src/components/blog/webmentions/Comments.astro') diff --git a/src/components/blog/webmentions/Comments.astro b/src/components/blog/webmentions/Comments.astro deleted file mode 100644 index 9d274f9..0000000 --- a/src/components/blog/webmentions/Comments.astro +++ /dev/null @@ -1,90 +0,0 @@ ---- -import { Image } from "astro:assets"; -import { Icon } from "astro-icon/components"; -import { t } from "@/i18n/translations"; -import type { WebmentionsChildren } from "@/types"; - -interface Props { - mentions: WebmentionsChildren[]; - language?: string | undefined; -} - -const { mentions, language } = Astro.props; - -const validComments = ["mention-of", "in-reply-to"]; - -const comments = mentions.filter( - (mention) => validComments.includes(mention["wm-property"]) && mention.content?.text, -); ---- - -{ - !!comments.length && ( -
-

- {comments.length}{" "} - {comments.length > 1 ? t(language, "mentions") : t(language, "mention")} -

- -
- ) -} -- cgit v1.2.3