feat: add more buttons to reply

This commit is contained in:
codytseng 2025-02-06 11:06:22 +08:00
parent 760f4bcccb
commit 6ffa180812
4 changed files with 36 additions and 47 deletions

View file

@ -8,16 +8,18 @@ import RepostButton from './RepostButton'
export default function NoteStats({
event,
className,
fetchIfNotExisting = false
fetchIfNotExisting = false,
variant = 'note'
}: {
event: Event
className?: string
fetchIfNotExisting?: boolean
variant?: 'note' | 'reply'
}) {
return (
<div className={cn('flex justify-between', className)}>
<div className="flex gap-4 h-4 items-center" onClick={(e) => e.stopPropagation()}>
<ReplyButton event={event} />
<div className="flex gap-5 h-4 items-center" onClick={(e) => e.stopPropagation()}>
<ReplyButton event={event} variant={variant} />
<RepostButton event={event} canFetch={fetchIfNotExisting} />
<LikeButton event={event} canFetch={fetchIfNotExisting} />
</div>