22 lines
532 B
TypeScript
22 lines
532 B
TypeScript
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>
|
|
)
|
|
} |