'use client' import React from 'react' import { AIUseCaseModule, AI_USE_CASE_TYPES, } from '@/lib/sdk/dsfa/ai-use-case-types' type UpdateFn = (updates: Partial) => void type AddToListFn = (field: keyof AIUseCaseModule, value: string, setter: (v: string) => void) => void type RemoveFromListFn = (field: keyof AIUseCaseModule, idx: number) => void // ============================================================================= // TAB 1: System // ============================================================================= interface Tab1SystemProps { module: AIUseCaseModule update: UpdateFn typeInfo: typeof AI_USE_CASE_TYPES[keyof typeof AI_USE_CASE_TYPES] } export function Tab1System({ module, update, typeInfo }: Tab1SystemProps) { return (
update({ name: e.target.value })} placeholder={`z.B. ${typeInfo.label} für Kundenservice`} className="w-full px-3 py-2 text-sm border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-purple-500" />