From 9c50b5d3e9f01c8466655a1a086a0e9b2dd609b5 Mon Sep 17 00:00:00 2001 From: Pabloader Date: Mon, 20 Apr 2026 14:58:33 +0000 Subject: [PATCH] Limit images size, substitute variables in titles --- src/games/storywriter/components/app.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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}