1import{aY as a,at as t}from"./.pnpm-DsWhPSJO.js";import{D as r}from"./DashboardLayout-D6O3WOCK.js";import{C as l}from"./ComponentDataTable-DqO00vgu.js";import"./MenuToggle-B7LuEM26.js";import"./assetPath-bsj2iDPi.js";function b({material:s}){const i=[{name:"Name",selector:e=>e.label,sortable:!0},{name:"Icon",selector:e=>e.icon??"",sortable:!0},{name:"Status",selector:e=>e.is_active==1?"Active":"Deactivated",sortable:!0},{name:"Action",cell:e=>a.jsxs(a.Fragment,{children:[a.jsx(t,{as:"a",href:`/dashboard/admin/material/${e.id}/edit`,className:"btn btn-primary my-1 mx-1",children:"Edit"}),a.jsx(t,{as:"a",href:`/dashboard/admin/material/${e.id}/delete`,className:"btn btn-warning my-1 mx-1",children:e.is_active==1?"Archive":"Activate"})]}),sortable:!0}];return a.jsx(r,{header:"List Material",subTitle:"List of Material",active:"",children:a.jsxs("div",{className:"grid grid-cols-12 gap-1",children:[a.jsx("div",{className:"col-span-4",children:a.jsx(t,{href:"/dashboard/admin/material/create",className:"btn btn-primary",children:"Add new Material"})}),a.jsx("div",{className:"col-span-12",children:a.jsx(l,{columns:i,data:s})})]})})}export{b as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.