import{j as s,H as r}from"./app-BRoRPa4x.js";import{A as l}from"./AdminLayout-DCcA2Aje.js";import"./Dropdown-B4bpLCgK.js";import"./transition-u43f5Dc-.js";import"./proxy-iYr3ghlA.js";import"./sweetalert2.esm.all-UgF8mXO5.js";import"./ChevronRightIcon-BDYMGWwz.js";function h({auth:a,product:e}){return s.jsxs(l,{user:a.user,header:s.jsx("h2",{className:"font-semibold text-xl text-gray-800 leading-tight",children:"Product Details"}),children:[s.jsx(r,{title:"Product Details"}),s.jsx("div",{className:"py-12",children:s.jsx("div",{className:"max-w-7xl mx-auto sm:px-6 lg:px-8",children:s.jsx("div",{className:"bg-white overflow-hidden shadow-sm sm:rounded-lg",children:s.jsxs("div",{className:"p-6 text-gray-900",children:[s.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:e.name}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsxs("div",{children:[s.jsxs("p",{className:"text-sm text-gray-600",children:[s.jsx("strong",{children:"Description:"})," ",e.description]}),s.jsxs("p",{className:"text-sm text-gray-600",children:[s.jsx("strong",{children:"Price:"})," $",e.price]}),s.jsxs("p",{className:"text-sm text-gray-600",children:[s.jsx("strong",{children:"Stock:"})," ",e.stock]}),s.jsxs("p",{className:"text-sm text-gray-600",children:[s.jsx("strong",{children:"Category:"})," ",e.category]})]}),s.jsx("div",{children:e.images&&e.images.length>0&&s.jsx("div",{className:"flex flex-wrap gap-2",children:e.images.map((t,i)=>s.jsx("img",{src:t,alt:"Product Image",className:"h-32 w-32 object-cover rounded-md"},i))})})]})]})})})})]})}export{h as default};
