sui-explorer-local
Version:
Local Sui Explorer
2 lines (1 loc) • 1.17 kB
JavaScript
import{j as t}from"./jsx-runtime-ffb262ed.js";import{f as o,C as d}from"./useFormatCoin-9f4b7ba7.js";import{H as m}from"./Heading-31d5eddc.js";const u=0;function n({amount:e,symbol:a,size:l="md",format:i}){const r=l==="lg",s=!a||typeof e=="bigint"||typeof e=="number"?o(e,u,i??d.FULL):e;return t.jsxs("div",{className:"flex items-end gap-1 break-words",children:[t.jsx(m,{variant:r?"heading2/bold":"heading6/semibold",color:"gray-90",children:s}),a&&t.jsx("div",{className:"text-bodySmall font-medium leading-4 text-steel-dark",children:r?t.jsx("sup",{className:"text-bodySmall",children:a}):a})]})}try{n.displayName="Amount",n.__docgenInfo={description:"",displayName:"Amount",props:{amount:{defaultValue:null,description:"",name:"amount",required:!0,type:{name:"string | number | bigint"}},symbol:{defaultValue:null,description:"",name:"symbol",required:!1,type:{name:"string | null"}},size:{defaultValue:{value:"md"},description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"lg"'},{value:'"md"'}]}},format:{defaultValue:null,description:"",name:"format",required:!1,type:{name:"enum",value:[{value:'"ROUNDED"'},{value:'"FULL"'}]}}}}}catch{}export{n as A};