import{j as e}from"./index-D0iJORaS.js";import{C as d,g as m,h,f as p}from"./card-DxZKb33V.js";import{B as r,a as c}from"./input-CcQzS21A.js";import{F as u,S as j}from"./sheet-DKZNKUgA.js";function b({title:i,subtitle:s,icon:x,onExportPDF:t,onExportExcel:a,className:l,contentClassName:n,children:o}){return e.jsxs(d,{className:c("border-border/60 shadow-sm hover:shadow-md transition-shadow",l),children:[e.jsxs(m,{className:"flex flex-row items-start justify-between gap-3 space-y-0 pb-2",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsxs(h,{className:"text-base flex items-center gap-2",children:[x,e.jsx("span",{className:"truncate",children:i})]}),s&&e.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:s})]}),e.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[t&&e.jsxs(r,{type:"button",size:"sm",variant:"outline",title:"Exportar PDF",onClick:t,className:"h-7 gap-1 px-2 text-[11px] border-destructive/30 text-destructive hover:bg-destructive/10 hover:text-destructive",children:[e.jsx(u,{className:"h-3.5 w-3.5"}),"PDF"]}),a&&e.jsxs(r,{type:"button",size:"sm",variant:"outline",title:"Exportar Excel",onClick:a,className:"h-7 gap-1 px-2 text-[11px] border-success/30 text-success hover:bg-success/10 hover:text-success",children:[e.jsx(j,{className:"h-3.5 w-3.5"}),"Excel"]})]})]}),e.jsx(p,{className:c(n),children:o})]})}export{b as C};
