- {currentStory.currentTab === "story" && (
+ {currentTab === "menu" && (
+
+ )}
+ {currentTab === "story" && currentStory && (
{
placeholder="Start writing your story..."
/>
)}
- {currentStory.currentTab === "lore" && (
+ {currentTab === "lore" && currentStory && (
)}
- {currentStory.currentTab === "characters" && (
+ {currentTab === "characters" && currentStory && (
)}
- {currentStory.currentTab === "locations" && (
+ {currentTab === "locations" && currentStory && (
)}
- {currentStory.currentTab === "chapters" && (
+ {currentTab === "chapters" && currentStory && (
)}
- {currentStory.currentTab === "scratchpad" && (
+ {currentTab === "scratchpad" && currentStory && (
{
placeholder="Notes, ideas, outlines — anything you don't want in the story..."
/>
)}
- {currentStory.currentTab === "prompt" && (
+ {currentTab === "prompt" && currentStory && (
)}
- {TABS.map((tab) => (
+ {TABS.filter(tab => currentStory || tab.id === 'menu').map((tab) => (