import React from 'react'; import { WizardState, Step } from '../types'; import { Camera, BookOpen, Ghost, Sword } from 'lucide-react'; interface StepContextProps { data: WizardState; updateData: (updates: Partial) => void; nextStep: () => void; } const StepContext: React.FC = ({ data, updateData, nextStep }) => { const handleContextSelect = (context: WizardState['context']) => { // If selecting Relacja, clear storyStyle and move on if (context === 'relacja') { updateData({ context, storyStyle: null }); setTimeout(nextStep, 150); } else { // If selecting Opowiesc, just update context and stay for sub-step updateData({ context, storyStyle: null }); // Reset style if switching back to opowiesc } }; const handleStyleSelect = (storyStyle: WizardState['storyStyle']) => { updateData({ storyStyle }); setTimeout(nextStep, 150); }; return (

Wybierz Kontekst

Jaki rodzaj historii chcesz opowiedzieć?

{/* Main Context Selection */}
{/* Sub-step for Opowiesc: Story Style */} {data.context === 'opowiesc' && (

Wybierz Styl Opowieści

Nadaj historii unikalny klimat.

)}
); }; export default StepContext;