import React from 'react'; import { styled, CardFooter } from '@jarvisnetwork/ui'; import { useNativeCurrency } from '../NetworkCurrenciesProvider'; import { useCurrentPair } from '../CurrentPairProvider'; const CardFooterWrapper = styled(CardFooter)``; const CardFooterContent = styled.div` padding: 16px; background: ${(params) => params.theme.background.secondary}; border-bottom-left-radius: ${(params) => params.theme.borderRadius.m}; border-bottom-right-radius: ${(params) => params.theme.borderRadius.m}; color: ${(params) => params.theme.text.medium}; display: flex; flex-direction: column; gap: 16px; .row { display: flex; justify-content: space-between; } .price { color: ${(params) => params.theme.text.secondary}; } `; export const FeesInfo = React.memo( ({ networkFee, baseFees = undefined, }: { networkFee: string; // eslint-disable-next-line react/require-default-props baseFees?: string; }) => { const nativeCurrency = useNativeCurrency(); const { collateralToken } = useCurrentPair(); return ( {baseFees?.length && (
Origination Fee {baseFees} {collateralToken?.symbol}
)}
Network Fee {networkFee} {nativeCurrency?.symbol}
); } );