diff --git a/frontend/src/components/TagDetailSidebar.tsx b/frontend/src/components/TagDetailSidebar.tsx
index 91d7092..6e2e2dd 100644
--- a/frontend/src/components/TagDetailSidebar.tsx
+++ b/frontend/src/components/TagDetailSidebar.tsx
@@ -2,6 +2,7 @@ import { useEffect, useState } from 'react'
import TagLink from '@/components/TagLink'
import TagSearch from '@/components/TagSearch'
+import SectionTitle from '@/components/common/SectionTitle'
import SubsectionTitle from '@/components/common/SubsectionTitle'
import SidebarComponent from '@/components/layout/SidebarComponent'
import { CATEGORIES } from '@/consts'
@@ -53,11 +54,54 @@ export default (({ post }: Props) => {
{categoryNames[cat]}
- {tags[cat].map ((tag, i) => (
- -
+ {tags[cat].map (tag => (
+
-
))}
))}
+ {post && (
+
+
情報
+
+ - Id.: {post.id}
+ {/* TODO: uploadedUser の取得を対応したらコメント外す */}
+ {/*
+ -
+ <>耕作者: >
+ {post.uploadedUser
+ ? (
+
+ {post.uploadedUser.name || '名もなきニジラー'}
+ )
+ : 'bot操作'}
+
+ */}
+ - 耕作日時: {(new Date (post.createdAt)).toLocaleString ()}
+ -
+ <>リンク: >
+
+ {post.url}
+
+
+ -
+ {/* TODO: 表示形式きしょすぎるので何とかする */}
+ <>オリジナルの投稿日時: >
+ {!(post.originalCreatedFrom) && !(post.originalCreatedBefore)
+ ? '不明'
+ : (
+ <>
+ {post.originalCreatedFrom
+ && `${ (new Date (post.originalCreatedFrom)).toLocaleString () } 以降 `}
+ {post.originalCreatedBefore
+ && `${ (new Date (post.originalCreatedBefore)).toLocaleString () } より前`}
+ >)}
+
+
+
)}
)
}) satisfies FC