import{a as s,j as t}from"./BulkImageUpload-DGPbX05r.js";import{U as o}from"./User-DMCQU0ZG.js";import m from"./BasicDetails-BPyVAeir.js";import x from"./TabLink-DQDfvC1b.js";import a from"./Path-BGQq4Hlj.js";import"./bootstrap.esm-e_F80uXB.js";import"./Input-CR3dcIBA.js";import"./sweetalert2.all-CGGHY7K6.js";const p=i=>{const[c,d]=s.useState("basic"),[e,l]=s.useState(""),[n,r]=s.useState(i.listing.id);return s.useEffect(()=>{i.typ!==void 0&&(l(i.typ),r(i.listing.id))},[i]),t.jsxs(o,{children:[e=="edit"?t.jsx(a,{title:"Edit Listing"}):t.jsx(a,{title:"Add New Listing"}),t.jsx("div",{className:"container",children:t.jsx("div",{className:"row new-listing",children:t.jsx("div",{className:"col-md-10 p-0 listing-col mx-auto",children:t.jsxs("div",{className:"card shadow text-center",children:[t.jsx("div",{className:"card-header p-0",children:t.jsx(x,{active:c,typ:e,lid:n})}),t.jsx("div",{className:"card-body tab-content p-0",children:t.jsx(m,{category:i.category,typ:e,listing:i.listing,location:i.location,setActive:d})}),t.jsx("div",{className:"card-footer text-muted",children:t.jsxs("div",{className:"row",children:[t.jsx("div",{className:"col-md-6 pt-2 left",children:t.jsx("p",{children:"Step 1 of 7"})}),t.jsx("div",{className:"col-md-6 right",children:t.jsx("button",{className:"btn disabled btn-light",children:"Skip and Go to Dashboard"})})]})})]})})})})]})};export{p as default};
