FrostByte/client-solid/src/Components/Comment.tsx
2024-03-23 00:10:42 +01:00

19 lines
425 B
TypeScript

import { JSXElement } from "solid-js";
import { PublicComment } from "../Util/api";
interface CommentProps {
comment: PublicComment;
}
export function Comment(props: CommentProps): JSXElement {
return (
<>
<div class="py-5">
<time class="text-xs opacity-50">{props.comment.created_at}</time>
</div>
<div class="">{props.comment.content}</div>
<div class="divider" />
</>
);
}