import{j as e,c as s}from"./vendor-react-LhvuxEgB.js";import{j as l}from"./index-ltw-H9qF.js";function t({title:t,icon:c,badge:i,badgeColor:r="teal",subtitle:a,actions:n,iconColor:x="text-icon-card-title",listHeader:m=!1,stackActionsOnMobile:d=!1,titleExtra:o,onClick:f,className:p}){const j="px-5 py-4 border-b border-edge-subtle",h=e.jsxs(e.Fragment,{children:[c&&e.jsx("span",{className:s("icon-md flex items-center justify-center",x),children:c}),e.jsx("span",{className:"type-micro",children:t}),i&&e.jsx(l,{color:r,children:i}),o]}),u=f?"button":"div",b=f?{onClick:f,type:"button"}:{};return d&&n?e.jsxs(u,{...b,className:s("flex flex-col gap-1 flex-shrink-0",m?j:"mb-3",f&&"w-full text-left cursor-pointer",p),children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-2 min-h-[32px]",children:[e.jsx("div",{className:"flex items-center gap-3",children:h}),e.jsx("div",{className:"flex items-center gap-2 flex-wrap",children:n})]}),a&&e.jsx("p",{className:"type-label text-fg-muted ml-8",children:a})]}):e.jsxs(u,{...b,className:s("flex flex-col gap-1 flex-shrink-0",m?j:"mb-3",f&&"w-full text-left cursor-pointer",p),children:[e.jsxs("div",{className:"flex items-center justify-between gap-2 min-h-[32px]",children:[e.jsx("div",{className:"flex items-center gap-3",children:h}),n&&e.jsx("div",{className:"flex items-center gap-2 flex-wrap",children:n})]}),a&&e.jsx("p",{className:"type-label text-fg-muted ml-8",children:a})]})}function c({children:l,centered:t,className:c}){return e.jsx("div",{className:s("flex-1 min-h-0",t&&"flex items-center justify-center",c),children:l})}export{t as C,c as a};
