-
+
+
+ {Array.from(
+ { length: story?.data?.pages || 0 },
+ (_, i) => i + 1
+ ).map((pageIndex) => (
+
-
-
-
setPage(pageIndex)}
+ style={{}}
+ className="p-0 m-0"
+ >
+
+
+
+ ))}
+
+
+
+
+
+
+
+
+
+
-
-
+ />
-
-
-
- )}
+
+
+
+
+
+ ,
+ {
+ icon: music_note,
+ label: "Play Audio",
+ onClick: playAudio,
+ disabled: audioPaths.length === 0,
+ } as ChipProps,
+ {
+ icon: skip_previous,
+ label: "Previous Page",
+ onClick: () => page > 1 && setPage(page - 1),
+ disabled: page === 1,
+ } as ChipProps,
+ {
+ icon: skip_next,
+ label: "Next Page",
+ onClick: () =>
+ page < (story?.data?.pages || 1) && setPage(page + 1),
+ disabled: page === story?.data?.pages,
+ } as ChipProps,
+ ]}
+ />
+
- )}
+