zkt24/frontend/components/comment.tsx

22 lines
532 B
TypeScript
Raw Normal View History

2024-04-10 09:23:23 +00:00
import Link from 'next/link'
export default function CommentBox({
content,
user,
id
}: {
content: string
user: string
id: number
}) {
return (
<div className="card w-96 card-side text-white hover:bg-base-300">
<div className="card-body">
<Link href={`/profile/${user}`}>
<h2 className="hover:text-primary card-title">{user}</h2>
</Link>
<p className="text-xl">{content}</p>
</div>
</div>
)
}