import{jsx as t,jsxs as p}from"react/jsx-runtime";import{ButtonContainer as x}from"../containers/button.js";import"../containers/card.js";import{css as u}from"@styled/css";import{Center as b,VStack as s,Box as c,HStack as y}from"@styled/jsx";import"@styled/tokens";import d from"../primitives/button.js";import"../primitives/checkbox.js";import"../primitives/dropdown-selector.js";import"../primitives/popover.js";import"../primitives/radio.js";import"../primitives/segmented-control.js";import"../primitives/switch.js";import h from"../primitives/text.js";import{cloneElement as g,Children as B}from"react";import"../utils/client-asset-logo.js";import"react-qrcode-logo";import"../utils/secured-by-magic.js";import"../containers/header.js";import"../containers/menu.js";import"../containers/modal.js";import"../containers/overlay.js";import"../feedback/callout.js";import"../feedback/progress-bar.js";import"../primitives/portal.js";import"../../hooks/useToast.js";import"../../recipes/toast.js";import C from"../feedback/tooltip.js";import{createSlot as w,createHost as S,isSlot as W,getSlotProps as v}from"create-slots/list";const l=w(({actionBox:e,children:n,disabledLabel:o,label:i,onPress:r})=>e?t(b,{h:"76px",maxW:"115px",w:"full",opacity:o?.3:1,pointerEvents:o?"none":"initial",children:t(x,{className:u({_hover:{bgColor:"neutral.secondary"},bgColor:"neutral.tertiary",h:"100%"}),borderRadius:"0.75rem",expand:!0,onPress:r,children:p(s,{gap:2,children:[g(B.only(n),{height:20,width:20}),t(h,{size:"sm",styles:{fontWeight:500},children:i})]})})}):p(s,{gap:1,minW:20,opacity:o?.3:1,pointerEvents:o?"none":"initial",children:[t(d,{variant:"neutral",size:"sm",onPress:r,"aria-label":"Buy",children:t(d.LeadingIcon,{children:n})}),t(h,{size:"sm",styles:{fontWeight:500},children:i})]})),f=({actionBox:e,children:n})=>t(c,{w:"full",children:S(n,o=>t(y,{w:"full",justifyContent:"space-around",px:10,children:o.map(i=>{if(W(i,l)){const{key:r,disabledLabel:m,...a}=v(i);return m?t(C,{content:m,width:"max-content",children:t(c,{children:t(l,{actionBox:e,disabledLabel:m,...a})})},r):t(l,{actionBox:e,...a},r)}})}))});f.Action=l;export{f as WalletActions};
//# sourceMappingURL=wallet-actions.js.map
