'use client';'use strict';

var chunkCLMLQV6A_cjs = require('./chunk-CLMLQV6A.cjs');
var chunkWHYG63JU_cjs = require('./chunk-WHYG63JU.cjs');
var chunkUZHQMTYC_cjs = require('./chunk-UZHQMTYC.cjs');
var chunk5XB54L7P_cjs = require('./chunk-5XB54L7P.cjs');
var css = require('@onbeam/styled-system/css');
var icons = require('@onbeam/icons');
var recipes = require('@onbeam/styled-system/recipes');
var jsxRuntime = require('react/jsx-runtime');

var T=chunk5XB54L7P_cjs.a(({as:s="ul",...i},t)=>jsxRuntime.jsx(chunkCLMLQV6A_cjs.a,{as:s,ref:t,...i}));T.displayName="TransactionDetailsBox";var D=chunk5XB54L7P_cjs.a(({as:s="li",label:i,tooltipLabel:t,details:o,className:f,...d},b)=>{let l=!!o?.onClick,x=l?"button":"div",n=recipes.transactionDetails();return jsxRuntime.jsxs(s,{ref:b,className:css.cx(n.row,f),"data-testid":"transaction-row",...d,children:[jsxRuntime.jsxs("div",{className:n.label,"data-testid":"transaction-label",children:[i,t&&jsxRuntime.jsx(chunkWHYG63JU_cjs.a,{label:t,children:jsxRuntime.jsx(chunkUZHQMTYC_cjs.a,{size:16,children:jsxRuntime.jsx(icons.TooltipGreyIcon,{})})})]}),o&&jsxRuntime.jsxs(x,{className:n.detail,onClick:o.onClick,"data-action":l,"data-testid":"transaction-detail",children:[o.label,o.icon,o.sublabel&&jsxRuntime.jsx("span",{className:n.detailSublabel,children:o.sublabel})]})]})});D.displayName="TransactionDetailsRow";

exports.a = T;
exports.b = D;
//# sourceMappingURL=out.js.map
//# sourceMappingURL=chunk-AVGCEMCW.cjs.map