diff --git a/admin-compliance/app/sdk/advisory-board/_components/NavigationButtons.tsx b/admin-compliance/app/sdk/advisory-board/_components/NavigationButtons.tsx new file mode 100644 index 0000000..cc76e8e --- /dev/null +++ b/admin-compliance/app/sdk/advisory-board/_components/NavigationButtons.tsx @@ -0,0 +1,54 @@ +'use client' + +import React from 'react' + +interface Props { + currentStep: number + isSubmitting: boolean + isEditMode: boolean + titleEmpty: boolean + onBack: () => void + onNext: () => void + onSubmit: () => void +} + +export function NavigationButtons({ currentStep, isSubmitting, isEditMode, titleEmpty, onBack, onNext, onSubmit }: Props) { + return ( +
+ + + {currentStep < 8 ? ( + + ) : ( + + )} +
+ ) +} diff --git a/admin-compliance/app/sdk/advisory-board/_components/ResultView.tsx b/admin-compliance/app/sdk/advisory-board/_components/ResultView.tsx new file mode 100644 index 0000000..cf3cbed --- /dev/null +++ b/admin-compliance/app/sdk/advisory-board/_components/ResultView.tsx @@ -0,0 +1,40 @@ +'use client' + +import React from 'react' +import { AssessmentResultCard } from '@/components/sdk/use-case-assessment/AssessmentResultCard' + +interface Props { + result: unknown + onGoToAssessment: (id: string) => void + onGoToOverview: () => void +} + +export function ResultView({ result, onGoToAssessment, onGoToOverview }: Props) { + const r = result as { assessment?: { id: string }; result?: Record } + return ( +
+
+

Assessment Ergebnis

+
+ {r.assessment?.id && ( + + )} + +
+
+ {r.result && ( + [0]['result']} /> + )} +
+ ) +} diff --git a/admin-compliance/app/sdk/advisory-board/_components/Step1Basics.tsx b/admin-compliance/app/sdk/advisory-board/_components/Step1Basics.tsx new file mode 100644 index 0000000..573345e --- /dev/null +++ b/admin-compliance/app/sdk/advisory-board/_components/Step1Basics.tsx @@ -0,0 +1,76 @@ +'use client' + +import React from 'react' +import type { StepProps } from '../_types' +import { AI_USE_CATEGORIES } from '../_data' + +interface Props extends StepProps { + profileIndustry: string | string[] | undefined +} + +export function Step1Basics({ form, updateForm, profileIndustry }: Props) { + return ( +
+

Grundlegende Informationen

+ + {/* Branche aus Profil (nur Anzeige) */} + {profileIndustry && (Array.isArray(profileIndustry) ? profileIndustry.length > 0 : true) && ( +
+ Branche (aus Unternehmensprofil) +

+ {Array.isArray(profileIndustry) ? profileIndustry.join(', ') : profileIndustry} +

+
+ )} + +
+ + updateForm({ title: e.target.value })} + placeholder="z.B. Chatbot fuer Kundenservice" + className="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-transparent" + /> +
+
+ +