import{r as i,c as m,b as e}from"./app-DTeOhhdM.js";import{a as p}from"./AuthenticatedLayout-DNj-hWy1.js";function c({warehouse:a,setWarehouse:o,setPermission:t="",label:s=!1,placeholder:r="Select a Warehouse"}){const{permission:n,warehouseList:l}=i.useContext(m);return e.jsxs(e.Fragment,{children:[s&&e.jsx("label",{className:"block text-sm font-medium text-gray-600 mb-2",children:s}),e.jsx(p,{optionLabel:"name",optionValue:"id",value:a,options:l,showClear:!0,onChange:u=>o(u.value??null),disabled:!n.includes(t),placeholder:r,className:"w-full rounded-lg shadow-sm",inputClassName:"h-11 px-4 text-sm"})]})}export{c as W};
