mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* integrate erc-7984 * minor fix * FHE operations and tags * upd * upd * fix mobile * upd * fix mobile * Update TxFHEOperations.tsx * upd * add hover text * Update Address.tsx * Update Address.tsx * add hover text * Revert "Merge branch 'both-prs' into fhe-operations" This reverts commit a8d48de2c077fed37581948ad07576ec751d2003, reversing changes made to f253cae03dc71d38c3fa92fcad29f7be11467521. * fix design of fhe ops page * fix design of fhe ops page * fix design of fhe ops page * fix design of fhe ops page * fix comments * fix: tab name * upd --------- Co-authored-by: Maksym Zub <[email protected]>
18 lines
534 B
TypeScript
18 lines
534 B
TypeScript
import type { FheOperationType } from 'types/api/fheOperations';
|
|
|
|
import type { BadgeProps } from 'toolkit/chakra/badge';
|
|
|
|
// Maps FHE operation types to Blockscout 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';
|
|
}
|