import { motion } from 'framer-motion'; import { useGeneration } from '@/context/GenerationContext'; import { XIcon, RefreshIcon, ArrowLeftIcon } from './Icons'; export const ErrorDisplay: React.FC = () => { const { state, reset, setStep } = useGeneration(); const { error } = state; return (
{/* Error Icon */} {/* Error Message */}

Generation Failed

{error || 'An unexpected error occurred during video generation.'}

{/* Actions */}
{/* Help Text */}

Troubleshooting Tips

  • • Check that your API keys are properly configured
  • • Ensure your image is under 10MB and in JPG/PNG format
  • • Try a shorter script if timeouts occur
  • • Check the backend server logs for more details
); };