diff --git a/src/games/storywriter/components/app.tsx b/src/games/storywriter/components/app.tsx index 65f621a..1c7f714 100644 --- a/src/games/storywriter/components/app.tsx +++ b/src/games/storywriter/components/app.tsx @@ -3,14 +3,16 @@ import styles from '../assets/app.module.css'; import { useAppState } from "../contexts/state"; import { ChatSidebar } from "./chat-sidebar"; import { Editor } from "./editor"; +import Prompt from "../utils/prompt"; export const App = () => { - const { currentStory } = useAppState(); + const appState = useAppState(); + const { currentStory } = appState; return (
{currentStory - ? {currentStory.title} - Storywriter + ? {Prompt.substituteVars(appState, currentStory.title)} - Storywriter : Storywriter}