owncast/web/pages/_app.tsx

38 lines
1.2 KiB
TypeScript
Raw Normal View History

// order matters!
2022-05-07 08:32:33 +02:00
import '../styles/variables.css';
2022-04-19 23:33:43 +02:00
import '../styles/global.less';
import '../styles/globals.scss';
import '../styles/ant-overrides.scss';
import '../styles/markdown-editor.scss';
import '../styles/main-layout.scss';
import '../styles/form-textfields.scss';
import '../styles/form-misc-elements.scss';
import '../styles/config-socialhandles.scss';
import '../styles/config-storage.scss';
import '../styles/config-edit-string-tags.scss';
import '../styles/config-video-variants.scss';
import '../styles/config-public-details.scss';
import '../styles/home.scss';
2020-12-23 08:15:37 +01:00
import '../styles/chat.scss';
2021-02-14 10:30:42 +01:00
import '../styles/pages.scss';
import '../styles/offline-notice.scss';
import { AppProps } from 'next/app';
2022-05-12 08:31:31 +02:00
import { Router, useRouter } from 'next/router';
2022-05-12 08:31:31 +02:00
import AdminLayout from '../components/layouts/admin-layout';
2022-04-28 21:57:51 +02:00
import SimpleLayout from '../components/layouts/SimpleLayout';
2020-10-01 00:12:10 +02:00
function App({ Component, pageProps }: AppProps) {
2022-05-12 08:31:31 +02:00
const router = useRouter() as Router;
if (router.pathname.startsWith('/admin')) {
return <AdminLayout pageProps={pageProps} Component={Component} router={router} />;
}
return <SimpleLayout pageProps={pageProps} Component={Component} router={router} />;
2020-10-01 00:12:10 +02:00
}
2021-01-31 10:38:20 +01:00
export default App;