mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-17 09:45:29 +00:00
5 lines
247 B
TypeScript
5 lines
247 B
TypeScript
|
|
export const eppStatusCodeToColor = (s: string) =>
|
||
|
|
['active', 'ok'].includes(s) ? 'green' :
|
||
|
|
s.startsWith('client') ? 'purple' :
|
||
|
|
s.startsWith('server') ? 'geekblue' :
|
||
|
|
s.includes('prohibited') ? 'red' : 'blue'
|