'use client' import { CompanyProfile, LegalForm } from '@/lib/sdk/types' import { INDUSTRIES, LEGAL_FORM_LABELS } from './constants' export function StepBasicInfo({ data, onChange, }: { data: Partial onChange: (updates: Partial) => void }) { return (
onChange({ companyName: e.target.value })} placeholder="Ihre Firma (ohne Rechtsform)" className="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-transparent" />

Mehrfachauswahl moeglich

{INDUSTRIES.map(ind => { const selected = (data.industry || []).includes(ind) return ( ) })}
{(data.industry || []).includes('Sonstige') && (
onChange({ industryOther: e.target.value })} placeholder="Ihre Branche eingeben..." className="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-transparent" />
)}
{ const val = parseInt(e.target.value) onChange({ foundedYear: isNaN(val) ? null : val }) }} onFocus={e => { if (!data.foundedYear) onChange({ foundedYear: 2000 }) }} placeholder="2020" min="1900" max={new Date().getFullYear()} className="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-transparent" />
) }