Almost finish implementing client side
This commit is contained in:
9
Client/app/utils/tags.tsx
Normal file
9
Client/app/utils/tags.tsx
Normal 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';
|
||||
}
|
||||
Reference in New Issue
Block a user