import React, { useState } from 'react'; import { Card } from '../ui/card'; import { Button } from '../ui/button'; import { Input, FileUpload } from '../ui/input'; import { Save, Camera, FileText } from 'lucide-react'; import { useToast } from '../../context/ToastContext'; export const AddEquipmentView: React.FC = () => { const { addToast } = useToast(); const [formData, setFormData] = useState({ category: 'Synth', brand: '', model: '', serial: '', purchaseDate: '', price: '', status: 'Active', location: 'Main Studio', warrantyEnd: '', notes: '', }); const handleChange = (field: string, value: string) => { setFormData((prev) => ({ ...prev, [field]: value })); }; const handleSave = () => { if (!formData.brand || !formData.model) { addToast('Please fill in basic information', 'error'); return; } addToast('Equipment added to inventory', 'success'); // Redirect logic would go here }; return (

REGISTER EQUIPMENT

{/* Left: Media */}

Photos

Upload Photos
{[1, 2, 3].map((i) => (
))}

Documents

Receipts, Manuals, Warranty Cards

{/* Right: Form */}

Basic Information

handleChange('status', e.target.value)} />
handleChange('brand', e.target.value)} /> handleChange('model', e.target.value)} />
handleChange('serial', e.target.value)} />

Purchase & Warranty

handleChange('purchaseDate', e.target.value)} /> handleChange('price', e.target.value)} /> handleChange('warrantyEnd', e.target.value)} />
handleChange('location', e.target.value)} />

Notes