utilize useEffect hook to trigger render when the mode state is changed. Move modes array to top level array, and change 'book-mode' to 'facing', and add 'flow' mode. toggle modes as class names in .pages div, which are each styled as required.
utilize useEffect hook to trigger render when the mode state is changed. Move modes array to top level array, and change 'book-mode' to 'facing', and add 'flow' mode. toggle modes as class names in .pages div, which are each styled as required.