diff --git a/components/article/ArticleBody.tsx b/components/article/ArticleBody.tsx new file mode 100644 index 0000000..852e861 --- /dev/null +++ b/components/article/ArticleBody.tsx @@ -0,0 +1,12 @@ +interface Props { + html: string +} + +export default function ArticleBody({ html }: Props) { + return ( +
+ ) +} diff --git a/components/article/TagRow.tsx b/components/article/TagRow.tsx new file mode 100644 index 0000000..07557ae --- /dev/null +++ b/components/article/TagRow.tsx @@ -0,0 +1,22 @@ +import type { ArticleTag } from '@/lib/types' + +interface Props { + tags: ArticleTag[] +} + +export default function TagRow({ tags }: Props) { + if (!tags || tags.length === 0) return null + + return ( +
+ {tags.map(({ tags_id: tag }) => ( + + {tag.name} + + ))} +
+ ) +}