import React from 'react'; import { EmployeeQuestion } from '../../employeeQuestions'; import { QuestionInput } from '../ui/QuestionInput'; interface EnhancedFigmaQuestionProps { questionNumber?: string | number; question: EmployeeQuestion; answer?: string; onAnswerChange?: (value: string) => void; onBack?: () => void; onNext?: () => void; showNavigation?: boolean; nextLabel?: string; backLabel?: string; className?: string; } export const EnhancedFigmaQuestion: React.FC = ({ questionNumber = 'Q', question, answer = '', onAnswerChange, onBack, onNext, showNavigation = true, nextLabel = 'Next', backLabel = 'Back', className = '' }) => { return (
{/* Question Header */}
{questionNumber}
{question.prompt}
{question.required ? 'Required' : 'Optional'} • {question.category} {question.type && ` • ${question.type}`}
{/* Separator */}
{/* Answer Section */}
A
{ })} className="border-0 bg-transparent focus:ring-0 p-0" />
{/* Navigation */} {showNavigation && (
{onBack && ( )} {onNext && ( )}
)}
); }; export default EnhancedFigmaQuestion;