mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
31 lines
824 B
TypeScript
31 lines
824 B
TypeScript
import { chakra } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
import type { TokenInfoApplication } from 'types/api/account';
|
|
|
|
interface Props {
|
|
status?: TokenInfoApplication['status'];
|
|
}
|
|
|
|
const VerifiedAddressesStatus = ({ status }: Props) => {
|
|
switch (status) {
|
|
case 'IN_PROCESS': {
|
|
return <chakra.span fontWeight={ 500 }>In progress</chakra.span>;
|
|
}
|
|
case 'APPROVED': {
|
|
return <chakra.span fontWeight={ 500 } color="green.500">Approved</chakra.span>;
|
|
}
|
|
case 'UPDATE_REQUIRED': {
|
|
return <chakra.span fontWeight={ 500 } color="orange.500">Waiting for update</chakra.span>;
|
|
}
|
|
case 'REJECTED': {
|
|
return <chakra.span fontWeight={ 500 } color="red.500">Rejected</chakra.span>;
|
|
}
|
|
|
|
default:
|
|
return null;
|
|
}
|
|
};
|
|
|
|
export default VerifiedAddressesStatus;
|