"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),n=require("@argent/x-shared"),d=require("../../features/providers/TokenProvider.cjs"),k=require("@chakra-ui/react"),f=require("react-i18next"),T=({txFee:o,networkId:t,...s})=>{const{t:r}=f.useTranslation(),{tokenAddress:i,currentAmount:u,maximumAmount:c}=o,e=d.useToken({address:i,networkId:t});if(!e)return null;const a=n.prettifyTokenAmount({amount:u,decimals:n.ensureDecimals(e.decimals)}),m=n.prettifyTokenAmount({amount:c,decimals:n.ensureDecimals(e.decimals),symbol:e.symbol});return l.jsx(k.Text,{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",...s,children:r("backendSessionTokenInfo.outOf",{displayCurrentAmount:a,displayMaximumAmount:m})})};exports.BackendSessionTokenInfo=T;
