summaryrefslogtreecommitdiff
path: root/src/app/_components/archiveLinkElement.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/_components/archiveLinkElement.tsx')
-rw-r--r--src/app/_components/archiveLinkElement.tsx9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/app/_components/archiveLinkElement.tsx b/src/app/_components/archiveLinkElement.tsx
index d97d904..94daed5 100644
--- a/src/app/_components/archiveLinkElement.tsx
+++ b/src/app/_components/archiveLinkElement.tsx
@@ -19,8 +19,12 @@ type AnimeReviewItem = {
animeId: number,
reviewId: number,
};
+type AnimeMatome = {
+ type: "AnimeMatome",
+ matomeId: string,
+};
type Common = { showLinkUnderline?: boolean }
-type Option = (ArticlePage | AnimeTop | AnimeReviewList | AnimeReviewItem) & Common;
+type Option = (ArticlePage | AnimeTop | AnimeReviewList | AnimeReviewItem | AnimeMatome) & Common;
export function ArciveLinkElement(option: Option) {
const officialLinkTitle = `公式のakiba-souken.com へのリンク。閉鎖後は繋がらなくなるはず`;
const iaSearchResultLinkTitle = `InternetArchive の検索結果へのリンク`;
@@ -53,6 +57,9 @@ export function ArciveLinkElement(option: Option) {
} else if (option.type == "AnimeReviewItem") {
originalUrl = `https://akiba-souken.com/anime/${option.animeId}/review/${option.reviewId}`;
iframeSrc = `anime-${option.animeId}-review-${option.reviewId}`;
+ } else if (option.type == "AnimeMatome") {
+ originalUrl = `https://akiba-souken.com/anime/matome/${option.matomeId}/`;
+ iframeSrc = `anime-matome-${option.matomeId}`;
} else {
throw new Error();
}