function WhatsappStock({ salesUrl, token }) { const [mode, setMode] = React.useState('price'); // 'price' or 'sell' return (
{/* Header Section */}

WhatsApp Inventory Management

Manage product pricing and sales for WhatsApp business

{/* Mode Toggle */}
{mode === 'price' ? (
💰
Product Pricing Mode
Set selling prices and supply quantities for WhatsApp inventory
) : (
🛒
Product Sales Mode
Process sales and manage WhatsApp product transactions
)}
{/* Content Section */}
{mode === 'price' ? ( (window.ProductPrice ? React.createElement(window.ProductPrice, { salesUrl, token }) :
Loading Product Price...
) ) : ( (window.ProductSell ? React.createElement(window.ProductSell, { salesUrl, token }) :
Loading Product Sales...
) )}
); } window.WhatsappStock = WhatsappStock;