mirror of
https://github.com/navidrome/navidrome.git
synced 2025-08-10 00:52:20 +00:00
27 lines
599 B
JavaScript
27 lines
599 B
JavaScript
import React from 'react'
|
|
import { useSelector } from 'react-redux'
|
|
import { Layout } from 'react-admin'
|
|
import { makeStyles } from '@material-ui/core/styles'
|
|
import Menu from './Menu'
|
|
import AppBar from './AppBar'
|
|
import themes from '../themes'
|
|
|
|
const useStyles = makeStyles({
|
|
root: { paddingBottom: '80px' }
|
|
})
|
|
|
|
export default (props) => {
|
|
const classes = useStyles()
|
|
const theme = useSelector((state) => themes[state.theme] || themes.DarkTheme)
|
|
|
|
return (
|
|
<Layout
|
|
{...props}
|
|
className={classes.root}
|
|
menu={Menu}
|
|
appBar={AppBar}
|
|
theme={theme}
|
|
/>
|
|
)
|
|
}
|