import React from 'react';
import type { TokenInfoApplication } from 'types/api/account';
import { Alert } from '@luxfi/ui/alert';
interface Props {
application?: TokenInfoApplication;
}
const TokenInfoFormStatusText = ({ application }: Props) => {
if (!application) {
return null;
}
switch (application.status) {
case 'IN_PROCESS': {
return (
Requests are sent to a moderator for review and approval. This process can take several days.
Request in progress. Once an admin approves your request you can edit token info.
);
}
case 'UPDATE_REQUIRED': {
return (
{ application.adminComments &&
{ application.adminComments } }
);
}
case 'REJECTED': {
return (
{ application.adminComments &&
{ application.adminComments } }
);
}
default:
return null;
}
};
export default React.memo(TokenInfoFormStatusText);