enhance youtube gift
All checks were successful
release / release (push) Successful in 37s

This commit is contained in:
2024-06-14 04:30:45 +08:00
parent 8a8f0979fb
commit c575059570
14 changed files with 63046 additions and 57 deletions

10
src/lib/utils.ts Normal file
View File

@@ -0,0 +1,10 @@
import type { Comment } from '@onecomme.com/onesdk/types/Comment';
export function authorColor(comment: Comment) {
if (comment.service === 'youtube') {
if (comment.data.isOwner) return 'text-yellow-300';
if (comment.data.isModerator) return 'text-blue-300';
if (comment.data.isMember) return 'text-green-300';
}
return 'text-zinc-200';
}