import React, { useState } from 'react'; import { useLanguage } from '../i18n/LanguageContext'; interface GoalInputFormProps { onGeneratePlan: (goal: string, additionalInfo?: string) => void; } const GoalInputForm: React.FC = ({ onGeneratePlan }) => { const { t } = useLanguage(); const [goal, setGoal] = useState(''); const [additionalInfo, setAdditionalInfo] = useState(''); const [showAdditional, setShowAdditional] = useState(false); const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); if (goal.trim()) { onGeneratePlan(goal.trim(), additionalInfo.trim() || undefined); } }; const handleExampleClick = (exampleGoal: string) => { setGoal(exampleGoal); onGeneratePlan(exampleGoal); }; return (

{t('nextGoalTitle')}

{t('nextGoalSub')}