import HelpOutline from '@mui/icons-material/HelpOutline'; import { Stack, Tooltip, Typography } from '@mui/material'; import { useLocaleContext } from '@arcblock/ux/lib/Locale/context'; import { formatTrialText, whiteTooltipSx } from '../../utils/format'; interface StakingBreakdownProps { staking: string; paymentAmount: string; trialActive: boolean; trialDays: number; afterTrialInterval: string | null; } export default function StakingBreakdown({ staking, paymentAmount, trialActive, trialDays, afterTrialInterval, }: StakingBreakdownProps) { const { t } = useLocaleContext(); return ( {t('payment.checkout.paymentRequired')} {trialActive ? formatTrialText(t, trialDays, afterTrialInterval || 'day') : paymentAmount} {t('payment.checkout.staking.title')} {staking} ); }