Magnus Smari Smarason 7c3d65dadf
Some checks failed
Build, Lint, and Deploy Arctic Species Portal / test-and-build (push) Failing after 1m0s
Build, Lint, and Deploy Arctic Species Portal / deploy (push) Has been skipped
Fixed CRUD operations for CITES listings, common names, and IUCN assessments. Added admin routes and authentication context. Updated UI components and added new pages for admin functionalities.
2025-05-17 20:58:29 +00:00

31 lines
634 B
TypeScript

import { clsx, type ClassValue } from "clsx"
import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
export const IUCN_STATUS_COLORS = {
NE: 'bg-gray-400 text-gray-900',
DD: 'bg-gray-500 text-white',
LC: 'bg-green-500 text-white',
NT: 'bg-yellow-400 text-gray-900',
VU: 'bg-orange-500 text-white',
EN: 'bg-red-500 text-white',
CR: 'bg-red-700 text-white',
EW: 'bg-purple-500 text-white',
EX: 'bg-black text-white',
};
export const IUCN_STATUS_PROGRESS = {
NE: 0,
DD: 10,
LC: 25,
NT: 40,
VU: 55,
EN: 70,
CR: 85,
EW: 95,
EX: 100,
};