import type { ParentProps } from 'solid-js'; import { OverlayScrollbarsComponent } from 'overlayscrollbars-solid'; import WindowFrame from './components/WindowFrame'; import Navbar from './components/Navbar'; import ErrorBoundary from './components/ErrorBoundary'; import AnimatedRoutes from './components/AnimatedRoutes'; import NotificationOverlay from './components/overlay/notifications/NotificationOverlay'; import { SettingsProvider } from './hooks/useSettings'; import { ClusterModalController } from './components/overlay/cluster/ClusterCreationModal'; import { MultiProvider } from './components/MultiProvider'; import { AccountControllerProvider } from './components/overlay/account/AddAccountModal'; import { ModalProvider } from './components/overlay/Modal'; import { PROGRAM_INFO } from '~bindings'; function App(props: ParentProps) { if (PROGRAM_INFO.dev_build !== true) document.addEventListener('contextmenu', e => e.preventDefault()); return (
{props.children}
); } export default App; function GlobalContexts(props: ParentProps) { return ( {props.children} ); }