BorrowDisabledWarning.tsx
1 import { Trans } from '@lingui/macro'; 2 3 import { getFrozenProposalLink } from '../infoTooltips/FrozenTooltip'; 4 import { Link } from '../primitives/Link'; 5 6 interface BorrowDisabledWarningProps { 7 symbol: string; 8 currentMarket: string; 9 } 10 export const BorrowDisabledWarning = ({ symbol, currentMarket }: BorrowDisabledWarningProps) => { 11 return ( 12 <Trans> 13 Borrowing is disabled due to an Aave community decision.{' '} 14 <Link 15 href={getFrozenProposalLink(symbol, currentMarket)} 16 sx={{ textDecoration: 'underline' }} 17 > 18 <Trans>More details</Trans> 19 </Link> 20 </Trans> 21 ); 22 };