import{j as e,H as a,L as t}from"./app-BQEFzdw6.js";import{A as i}from"./AppLayout-kozc03ce.js";import{P as d}from"./PageHeader-Bj1OQnqr.js";import{B as r}from"./Badge-CiLdjUlo.js";import{F as c}from"./PencilIcon-BWjiauNE.js";import"./useThemeColor-qPCpc713.js";function j({warehouse:s}){return e.jsxs(i,{children:[e.jsx(a,{title:s.name}),e.jsx(d,{title:s.name,subtitle:"Warehouse",back:route("inventory.warehouses.index"),children:e.jsxs(t,{href:route("inventory.warehouses.edit",s.id),className:"btn btn-secondary flex items-center gap-2",children:[e.jsx(c,{className:"w-4 h-4"})," Edit"]})}),e.jsx("div",{className:"p-4 sm:p-6 max-w-lg",children:e.jsx("div",{className:"card p-6",children:e.jsxs("dl",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("dt",{className:"text-xs text-gray-500 uppercase",children:"Name"}),e.jsx("dd",{className:"font-medium",children:s.name})]}),e.jsxs("div",{children:[e.jsx("dt",{className:"text-xs text-gray-500 uppercase",children:"Location"}),e.jsx("dd",{children:s.location??"—"})]}),e.jsxs("div",{children:[e.jsx("dt",{className:"text-xs text-gray-500 uppercase",children:"Status"}),e.jsx("dd",{children:e.jsx(r,{status:s.is_active?"active":"cancelled",label:s.is_active?"Active":"Inactive"})})]})]})})})]})}export{j as default};
