Almost finish implementing client side

This commit is contained in:
2025-11-06 20:22:16 +02:00
parent a847779582
commit a891a686fd
42 changed files with 6450 additions and 57 deletions

View File

@@ -0,0 +1,9 @@
import type { Tag } from "~/types/tag";
export const getTagColor = (tag: Tag) => {
const categories = {
"General": 'bg-green-100 text-green-800',
"Copyright": 'bg-yellow-100 text-yellow-800',
};
return categories[tag.type] || 'bg-gray-200 text-gray-800';
}