import { gameRuntime } from '../state/runtime'; import { useGameStore } from '../state/store'; import { StoryProseLog } from './StoryProseLog'; import { StoryTree } from './StoryTree'; const SHELL_HEIGHT = 'h-[calc(100dvh-6rem)]'; export function StoryView() { const tree = useGameStore((s) => s.story.tree); const log = useGameStore((s) => s.storyLog); const selectedId = useGameStore((s) => s.selectedStoryNodeId); const currentProse = useGameStore((s) => s.story.currentProse); const isBootIntro = useGameStore((s) => s.story.atBootIntro); if (isBootIntro) { return (

{currentProse}

); } return (
gameRuntime.selectStoryNode(id)} />
); }