import { useState } from "react"; import type { Story } from "../types"; interface NarratorViewProps { story: Story; onFinish: () => void; onBack: () => void; } export default function NarratorView({ story, onFinish, onBack }: NarratorViewProps) { const [solutionHidden, setSolutionHidden] = useState(true); return (

{story.title}

Enigma

{story.teaser}

Solución completa

{story.solution}

{solutionHidden && Confidencial}
); }