mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-25 19:01:06 +03:00
33 lines
828 B
JavaScript
33 lines
828 B
JavaScript
import { useSelector } from 'react-redux'
|
|
|
|
import { ThemeProvider } from '@mui/material/styles'
|
|
import { CssBaseline, StyledEngineProvider } from '@mui/material'
|
|
|
|
// routing
|
|
import Routes from 'routes'
|
|
|
|
// defaultTheme
|
|
import themes from 'themes'
|
|
|
|
// project imports
|
|
import NavigationScroll from 'layout/NavigationScroll'
|
|
|
|
// ==============================|| APP ||============================== //
|
|
|
|
const App = () => {
|
|
const customization = useSelector((state) => state.customization)
|
|
|
|
return (
|
|
<StyledEngineProvider injectFirst>
|
|
<ThemeProvider theme={themes(customization)}>
|
|
<CssBaseline />
|
|
<NavigationScroll>
|
|
<Routes />
|
|
</NavigationScroll>
|
|
</ThemeProvider>
|
|
</StyledEngineProvider>
|
|
)
|
|
}
|
|
|
|
export default App
|