From 32622f8119732cf93e5646d9fda72ea760e27025 Mon Sep 17 00:00:00 2001 From: miteruzo Date: Sun, 24 Aug 2025 05:53:25 +0900 Subject: [PATCH] #17 --- frontend/src/components/TwitterEmbed.tsx | 21 +++++++++++++ frontend/src/components/common/Form.tsx | 9 +----- frontend/src/pages/posts/PostDetailPage.tsx | 33 ++++++++++++++------- 3 files changed, 44 insertions(+), 19 deletions(-) create mode 100644 frontend/src/components/TwitterEmbed.tsx diff --git a/frontend/src/components/TwitterEmbed.tsx b/frontend/src/components/TwitterEmbed.tsx new file mode 100644 index 0000000..dd640c8 --- /dev/null +++ b/frontend/src/components/TwitterEmbed.tsx @@ -0,0 +1,21 @@ +import type { FC } from 'react' + +type Props = { + userId: string + statusId: string } + + +export default (({ userId, statusId }: Props) => { + const now = (new Date).toLocaleDateString () + + return ( +
+
+

+ Loading... +

+ — @{userId} {now} +
+