/* Me2You - Unified Sell Wizard for items, property, vehicles + Recently Viewed */ /* global React, Icon, Field, panelStyle, btnPrimary, btnGhost, btnSmall, ImageUploader, Price, CATEGORIES, LeafletMap */ const { useState } = React; function UnifiedSellWizard({ onBack, onPublish }) { const [kind, setKind] = useState(null); const [step, setStep] = useState(0); if (!kind) return (

What are you listing?

Pick the type of listing so we collect the right details.

{[ { key:'item', label:'Item', desc:'Anything you can ship: electronics, clothes, food, crafts.', icon:'package' }, { key:'property', label:'Property', desc:'Rooms, apartments, houses to rent or sell.', icon:'home' }, { key:'vehicle', label:'Vehicle', desc:'Cars, bikes, scooters. NaTIS verification required.', icon:'truck' }, ].map(o => ( ))}
); return (
{kind === 'item' && } {kind === 'property' && } {kind === 'vehicle' && }
); } function StepHeader({ step, steps }) { return (
{steps.map((s,i) => (
{i+1}
{s}
))}
); } function ItemForm({ step, setStep, onPublish }) { return ( <>

List an item

Takes 3-4 minutes.

{step === 1 && (