import WarningRounded from '@mui/icons-material/WarningRounded'
import { type BoxProps, Typography } from '@mui/material'
import { useTranslation } from 'react-i18next'
import { AlertMessage } from './AlertMessage.js'
type MinFromAmountUSDMessageProps = BoxProps & {
minFromAmountUSD: number
}
export const MinFromAmountUSDMessage: React.FC<
MinFromAmountUSDMessageProps
> = ({ minFromAmountUSD, ...props }) => {
const { t } = useTranslation()
return (
}
title={
{t('warning.message.minFromAmountUSD', {
amount: minFromAmountUSD,
minimumFractionDigits: 0,
})}
}
multiline
{...props}
/>
)
}