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

@@ -11,11 +11,9 @@ import { formatCount } from './utils'
export default function LikeButton({
event,
variant = 'normal',
canFetch = false
}: {
event: Event
variant?: 'normal' | 'reply'
canFetch?: boolean
}) {
const { t } = useTranslation()
@@ -70,8 +68,7 @@ export default function LikeButton({
return (
<button
className={cn(
'flex items-center enabled:hover:text-red-400',
variant === 'normal' ? 'gap-1' : 'flex-col',
'flex items-center enabled:hover:text-red-400 gap-1',
hasLiked ? 'text-red-400' : 'text-muted-foreground'
)}
onClick={like}