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

Weitere Materialien?

updateState({ otherAssets: [...state.otherAssets, v] })} onRemove={(i) => updateState({ otherAssets: state.otherAssets.filter((_, idx) => idx !== i) })} placeholder="z.B. Stock-Fotos, Video-Footage, Präsentationen..." />
); }