import{K as n,r as e,j as t,L as u}from"./app-D_lWdAF1.js";import{B as p,A as d}from"./Add-B_lToW0R.js";import{G as s}from"./grid-view-DFp2PvPX.js";import{A as x,T as f}from"./alert-box-CSO11xje.js";import{A as j}from"./app-layout-DBWaGSby.js";import"./app-gFGt7Tbg.js";import"./app-logo-icon-B18IWF-o.js";import"./slots-DhmpWYGS.js";import"./Typography-D06EX7-K.js";import"./index--DsFJTFe.js";import"./index-DKsctv8k.js";const h=[{title:"Customers",href:"/customers"}];function G({columns:r=[],dataset:o=[]}){const{flash:a}=n().props,[i,m]=e.useState([]),[l,c]=e.useState([]);return e.useEffect(()=>{m(r),c(o)},[r,o]),t.jsxs(j,{breadcrumbs:h,children:[t.jsx(u,{title:"Customers"}),t.jsx(x,{flash:a}),t.jsxs(s,{title:"Customers",children:[t.jsx(s.Title,{children:"Customers"}),t.jsx(s.Action,{children:t.jsx(p,{href:route("customers.create"),startIcon:t.jsx(d,{}),children:"Add"})}),t.jsx(s.Body,{children:t.jsx(f,{columns:i,dataset:l,showSelection:!0})})]})]})}export{G as default};
