/** * Copyright (c) TonTech. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ import type { ComponentProps, FC } from 'react'; import clsx from 'clsx'; import type { TransactionStatus } from '@ton/appkit'; import { FailedIcon, SpinnerIcon, SuccessIcon } from '../../../../components/ui/icons'; import styles from './transaction-progress.module.css'; export interface TransactionProgressIconsProps extends ComponentProps<'svg'> { status: TransactionStatus; isError: boolean; } const STATUS_ICON_SIZE = 48; export const TransactionProgressIcon: FC = ({ status, isError, className, ...props }) => { if (status === 'completed') return ; if (status === 'failed' || isError) return ; return ; };