import { Grid, GridItem } from '@chakra-ui/react'; import CurrentImageDisplay from './features/gallery/CurrentImageDisplay'; import LogViewer from './features/system/LogViewer'; import PromptInput from './features/sd/PromptInput'; import ProgressBar from './features/header/ProgressBar'; import { useEffect } from 'react'; import { useAppDispatch } from './app/hooks'; import { requestAllImages } from './app/socketio'; import ProcessButtons from './features/sd/ProcessButtons'; import ImageGallery from './features/gallery/ImageGallery'; import SiteHeader from './features/header/SiteHeader'; import OptionsAccordion from './features/sd/OptionsAccordion'; const App = () => { const dispatch = useAppDispatch(); // Load images from the gallery once useEffect(() => { dispatch(requestAllImages()); }, [dispatch]); return ( <> ); }; export default App;