4 lines
252 B
TypeScript
4 lines
252 B
TypeScript
// Shared story state: written by the scroll orchestrator, read by sections.
|
|
export const useStory = () =>
|
|
useState("story", () => ({ active: 0, dir: 1, inEco: false, focus: -1, mobile: false, hover: -1, go: null as null | ((i: number) => void) }));
|