mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-11-23 01:42:25 +08:00
26 lines
723 B
TypeScript
26 lines
723 B
TypeScript
import IpcRendererReact from '@/web/IpcRendererReact'
|
|
import Layout from '@/web/components/Layout'
|
|
import Devtool from '@/web/components/Devtool'
|
|
import ErrorBoundary from '@/web/components/ErrorBoundary'
|
|
import useIsMobile from '@/web/hooks/useIsMobile'
|
|
import LayoutMobile from '@/web/components/LayoutMobile'
|
|
import ScrollRestoration from '@/web/components/ScrollRestoration'
|
|
import Toaster from './components/Toaster'
|
|
|
|
const App = () => {
|
|
// const isMobile = useIsMobile()
|
|
|
|
return (
|
|
<ErrorBoundary>
|
|
{/* {isMobile ? <LayoutMobile /> : <Layout />} */}
|
|
<Layout />
|
|
<Toaster />
|
|
<ScrollRestoration />
|
|
<IpcRendererReact />
|
|
<Devtool />
|
|
</ErrorBoundary>
|
|
)
|
|
}
|
|
|
|
export default App
|