'use client'; import * as React from 'react'; import { FormState } from '../types'; import { FEATURE_OPTIONS } from '../constants'; import { Checkbox } from '../components/Checkbox'; import { RepeatableList } from '../components/RepeatableList'; import { motion, AnimatePresence } from 'framer-motion'; import { Minus, Plus, LayoutGrid, ListPlus, HelpCircle } from 'lucide-react'; interface FeaturesStepProps { state: FormState; updateState: (updates: Partial) => void; toggleItem: (list: string[], id: string) => string[]; } export function FeaturesStep({ state, updateState, toggleItem }: FeaturesStepProps) { const toggleDontKnow = (id: string) => { const current = state.dontKnows || []; if (current.includes(id)) { updateState({ dontKnows: current.filter(i => i !== id) }); } else { updateState({ dontKnows: [...current, id] }); } }; return (

System-Module

Optional
Module sind funktionale Einheiten, die über einfache Textseiten hinausgehen.
toggleDontKnow('features')} className={`px-6 py-3 rounded-full text-sm font-bold transition-all whitespace-nowrap shrink-0 ${ state.dontKnows?.includes('features') ? 'bg-slate-900 text-white' : 'bg-slate-100 text-slate-500 hover:bg-slate-200' }`} > Ich weiß es nicht
{FEATURE_OPTIONS.map((opt, index) => ( 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..." />
); }