'use client' import { useState } from 'react' export interface LabelProfileFormData { name: string description?: string logoUrl?: string website?: string } export interface LabelProfileFormProps { label: LabelProfileFormData onSave: (data: LabelProfileFormData) => void | Promise onCancel?: () => void isLoading?: boolean } export function LabelProfileForm({ label, onSave, onCancel, isLoading = false }: LabelProfileFormProps) { const [formData, setFormData] = useState(label) const [hasChanges, setHasChanges] = useState(false) const handleChange = (field: keyof LabelProfileFormData, value: string) => { setFormData({ ...formData, [field]: value }) setHasChanges(true) } const handleSubmit = (e: React.FormEvent) => { e.preventDefault() onSave(formData) } const handleReset = () => { setFormData(label) setHasChanges(false) onCancel?.() } return (
{/* Name */}
handleChange('name', e.target.value)} className="w-full px-4 py-3 bg-zinc-800 border border-zinc-700 rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-purple-500" required />

This is how your label will appear to artists and listeners

{/* Description */}