"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),d=require("@argent/x-shared"),c=require("@chakra-ui/react"),p=require("../../features/providers/CurrencyProvider.cjs");require("../Typography.cjs");const s=require("../typography.generated.cjs"),x=({crosshair:e,children:r,...i})=>{const t=p.useCurrency();if(!e)return null;const n=e.x<e.width/2,l=n?`${e.x}px`:void 0,u=n?void 0:`${e.width-e.x}px`;return o.jsxs(c.Center,{textAlign:"center",flexDirection:"column",px:2,py:1,position:"absolute",left:l,right:u,top:`${e.y}px`,bgColor:"surface-brand",color:"surface-default",borderRadius:"lg",fontWeight:"semibold",pointerEvents:"none",zIndex:2,...i,children:[o.jsx(s.L1Bold,{children:d.prettifyCurrencyValue(e.price,t==null?void 0:t.symbol)}),r]})};exports.TokenDetailsChartTooltip=x;
