'use client'; import * as React from 'react'; import { FormState } from '../types'; import { Checkbox } from '../components/Checkbox'; import { RepeatableList } from '../components/RepeatableList'; import { FEATURE_OPTIONS } from '../constants'; interface FeaturesStepProps { state: FormState; updateState: (updates: Partial) => void; toggleItem: (list: string[], id: string) => string[]; } export function FeaturesStep({ state, updateState, toggleItem }: FeaturesStepProps) { return (
{FEATURE_OPTIONS.map(opt => ( updateState({ features: toggleItem(state.features, opt.id) })} /> ))}

Weitere inhaltliche Module?

updateState({ otherFeatures: [...state.otherFeatures, v] })} onRemove={(i) => updateState({ otherFeatures: state.otherFeatures.filter((_, idx) => idx !== i) })} placeholder="z.B. Glossar, Download-Center, Partner-Bereich..." />
); }