15 lines
308 B
TypeScript
Raw Normal View History

import { Post } from "../types/index.ts";
export const PostBody = function PostBody({ post }: PostBodyOpts) {
return (
2025-05-17 21:07:56 -04:00
<div
class="p-6 bg-[#313244] shadow-md text-[#f5e0dc]"
dangerouslySetInnerHTML={{ __html: post.body }}
></div>
);
};
export type PostBodyOpts = {
post: Post;
};