'use client' import { Settings } from '../_types' interface SettingsTabProps { settings: Settings saving: boolean onChange: (s: Settings) => void onSave: () => void } export function SettingsTab({ settings, saving, onChange, onSave }: SettingsTabProps) { const update = (field: keyof Settings, value: string) => { onChange({ ...settings, [field]: value }) } return (

E-Mail-Einstellungen

update('sender_name', e.target.value)} className="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm" />
update('sender_email', e.target.value)} className="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm" />
update('reply_to', e.target.value)} className="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm" placeholder="optional" />
update('company_name', e.target.value)} className="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm" />
update('logo_url', e.target.value)} className="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm" placeholder="https://..." />
update('primary_color', e.target.value)} className="h-10 w-10 rounded cursor-pointer" /> update('primary_color', e.target.value)} className="flex-1 px-3 py-2 border border-gray-300 rounded-lg text-sm font-mono" />
update('secondary_color', e.target.value)} className="h-10 w-10 rounded cursor-pointer" /> update('secondary_color', e.target.value)} className="flex-1 px-3 py-2 border border-gray-300 rounded-lg text-sm font-mono" />