import{Gs as s,Yl as i,au as r}from"./shared-0-C4kdVF7Y.js";import{ki as a}from"./vendor-frame-CwiylG4Y.js";import{Am as e}from"./shared-1-3-6x7RKF.js";import{rn as l}from"./vendor-all-2-BJdkbLSj.js";import{al as n}from"./shared-4-6CEyRAHb.js";var o=a();function m({amount:a,currency:m,overagesEnabled:t}){const d=l(),c=r(),u=i(),g=s()?"/settings/billing":c||u?"/admin-settings/usage":"/settings/usage",x=void 0!==a&&void 0!==m?d.formatNumber(a,{style:"currency",currency:m,minimumFractionDigits:0,maximumFractionDigits:0}):void 0,j=s=>(0,o.jsx)(n,{href:g,className:"text-primary",children:s});return(0,o.jsxs)("div",{className:"flex flex-col gap-2xs",children:[(0,o.jsx)("span",{className:"font-medium",children:void 0!==x?(0,o.jsx)(e,{id:"ygcrl9",dangerouslyVisiblePublicValues:{amount:x}}):(0,o.jsx)(e,{id:"1srdk5h"})}),(0,o.jsx)("span",{children:t?(0,o.jsx)(e,{id:"137t69g",dangerouslyVisiblePublicValues:{link:j}}):(0,o.jsx)(e,{id:"18hbcrr",dangerouslyVisiblePublicValues:{link:j}})})]})}export{m as t};