import type { LiFiStep, Process } from '@lifi/sdk'; import { OpenInNewRounded } from '@mui/icons-material'; import { Box, Link, Typography } from '@mui/material'; import { useExplorer } from '../../hooks/useExplorer.js'; import { useProcessMessage } from '../../hooks/useProcessMessage.js'; import { CardIconButton } from '../Card/CardIconButton.js'; import { CircularProgress } from './CircularProgress.js'; export const StepProcess: React.FC<{ step: LiFiStep; process: Process; }> = ({ step, process }) => { const { title, message } = useProcessMessage(step, process); const { getTransactionLink } = useExplorer(); return ( {title} {process.txHash || process.txLink ? ( ) : null} {message ? ( {message} ) : null} ); };