2024-12-31 13:55:42 +01:00
|
|
|
import type {EventAction} from '../api'
|
2024-08-22 01:44:50 +02:00
|
|
|
import {
|
|
|
|
|
ClockCircleOutlined,
|
|
|
|
|
DeleteOutlined,
|
|
|
|
|
LockOutlined,
|
2024-12-19 13:48:26 +01:00
|
|
|
PushpinOutlined,
|
2024-08-22 01:44:50 +02:00
|
|
|
ReloadOutlined,
|
|
|
|
|
ShareAltOutlined,
|
|
|
|
|
SignatureOutlined,
|
|
|
|
|
SyncOutlined,
|
|
|
|
|
UnlockOutlined
|
2024-12-30 23:50:15 +01:00
|
|
|
} from '@ant-design/icons'
|
|
|
|
|
import React from 'react'
|
2024-08-22 01:44:50 +02:00
|
|
|
|
2024-12-30 23:50:15 +01:00
|
|
|
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'}}/>
|
|
|
|
|
: <PushpinOutlined style={{fontSize: '16px'}}/>
|