mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-17 17:55:42 +00:00
9 lines
311 B
TypeScript
9 lines
311 B
TypeScript
export const eppStatusCodeToColor = (s: string) =>
|
|
['active', 'ok'].includes(s)
|
|
? 'green'
|
|
: ['pending delete', 'redemption period'].includes(s)
|
|
? 'red'
|
|
: s.startsWith('client')
|
|
? 'purple'
|
|
: s.startsWith('server') ? 'geekblue' : 'blue'
|