mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-18 18:25:37 +00:00
26 lines
1.4 KiB
TypeScript
26 lines
1.4 KiB
TypeScript
|
|
import {EventAction} from "../api";
|
||
|
|
import {
|
||
|
|
ClockCircleOutlined,
|
||
|
|
DeleteOutlined,
|
||
|
|
LockOutlined,
|
||
|
|
ReloadOutlined,
|
||
|
|
ShareAltOutlined,
|
||
|
|
SignatureOutlined,
|
||
|
|
SyncOutlined,
|
||
|
|
UnlockOutlined
|
||
|
|
} from "@ant-design/icons";
|
||
|
|
import React from "react";
|
||
|
|
|
||
|
|
export const actionToIcon = (a: EventAction) => a === 'registration' ?
|
||
|
|
<SignatureOutlined style={{fontSize: '16px'}}/> : a === 'expiration' ?
|
||
|
|
<ClockCircleOutlined style={{fontSize: '16px'}}/> : a === 'transfer' ?
|
||
|
|
<ShareAltOutlined style={{fontSize: '16px'}}/> : a === 'last changed' ?
|
||
|
|
<SyncOutlined style={{fontSize: '16px'}}/> : a === 'deletion' ?
|
||
|
|
<DeleteOutlined style={{fontSize: '16px'}}/> : a === 'reregistration' ?
|
||
|
|
<ReloadOutlined style={{fontSize: '16px'}}/> : a === 'locked' ?
|
||
|
|
<LockOutlined style={{fontSize: '16px'}}/> : a === 'unlocked' ?
|
||
|
|
<UnlockOutlined style={{fontSize: '16px'}}/> : a === 'registrar expiration' ?
|
||
|
|
<ClockCircleOutlined
|
||
|
|
style={{fontSize: '16px'}}/> : a === 'enum validation expiration' ?
|
||
|
|
<ClockCircleOutlined style={{fontSize: '16px'}}/> : a === 'reinstantiation' ?
|
||
|
|
<ReloadOutlined style={{fontSize: '16px'}}/> : undefined
|