mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
18 lines
527 B
TypeScript
18 lines
527 B
TypeScript
import type { FheOperationType } from 'types/api/fheOperations';
|
|
|
|
import type { BadgeProps } from '@luxfi/ui/badge';
|
|
|
|
// Maps FHE operation types to Explorer color palette
|
|
export function getTypeColor(type: FheOperationType): BadgeProps['colorPalette'] {
|
|
const colors: Record<FheOperationType, BadgeProps['colorPalette']> = {
|
|
comparison: 'purple',
|
|
control: 'orange',
|
|
arithmetic: 'blue',
|
|
bitwise: 'teal',
|
|
encryption: 'cyan',
|
|
unary: 'yellow',
|
|
random: 'pink',
|
|
};
|
|
return colors[type] || 'gray';
|
|
}
|