import {MessageDescriptor} from '../i18n/message-descriptor'; import {Link, To} from 'react-router-dom'; import {AnimatePresence, m} from 'framer-motion'; import {TaskAltIcon} from '../icons/material/TaskAlt'; import {ErrorIcon} from '../icons/material/Error'; import {Trans} from '../i18n/trans'; import {Button} from '../ui/buttons/button'; import {Skeleton} from '../ui/skeleton/skeleton'; import {opacityAnimation} from '../ui/animation/opacity-animation'; export interface BillingRedirectMessageConfig { message: MessageDescriptor; status: 'success' | 'error'; link: To; buttonLabel: MessageDescriptor; } interface BillingRedirectMessageProps { config?: BillingRedirectMessageConfig; } export function BillingRedirectMessage({config}: BillingRedirectMessageProps) { return (
{config ? ( {config.status === 'success' ? ( ) : ( )}
) : ( )}
); } function LoadingSkeleton() { return ( ); }