YesPlayMusic/packages/web/App.tsx
2023-01-24 16:29:33 +08:00

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