mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-18 10:15:41 +00:00
11 lines
549 B
TypeScript
11 lines
549 B
TypeScript
|
|
import {EventAction} from "../api";
|
||
|
|
|
||
|
|
export const actionToColor = (a: EventAction) => a === 'registration' ? 'green' :
|
||
|
|
a === 'reregistration' ? 'cyan' :
|
||
|
|
a === 'expiration' ? 'red' :
|
||
|
|
a === 'deletion' ? 'magenta' :
|
||
|
|
a === 'transfer' ? 'orange' :
|
||
|
|
a === 'last changed' ? 'blue' :
|
||
|
|
a === 'registrar expiration' ? 'red' :
|
||
|
|
a === 'reinstantiation' ? 'purple' :
|
||
|
|
a === 'enum validation expiration' ? 'red' : 'default'
|