1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-25 19:52:44 +01:00
lossless-cut/src/index.jsx
2023-08-20 22:25:25 +02:00

46 lines
1.2 KiB
JavaScript

import React, { Suspense } from 'react';
import { createRoot } from 'react-dom/client';
import { MotionConfig } from 'framer-motion';
import { enableMapSet } from 'immer';
import 'sweetalert2/dist/sweetalert2.css';
import '@fontsource/open-sans/300.css';
import '@fontsource/open-sans/300-italic.css';
import '@fontsource/open-sans/400.css';
import '@fontsource/open-sans/400-italic.css';
import '@fontsource/open-sans/500.css';
import '@fontsource/open-sans/500-italic.css';
import '@fontsource/open-sans/600.css';
import '@fontsource/open-sans/600-italic.css';
import '@fontsource/open-sans/700.css';
import '@fontsource/open-sans/700-italic.css';
import '@fontsource/open-sans/800.css';
import '@fontsource/open-sans/800-italic.css';
import App from './App';
import ErrorBoundary from './ErrorBoundary';
import './i18n';
import './main.css';
enableMapSet();
const { app } = window.require('@electron/remote');
console.log('Version', app.getVersion());
const container = document.getElementById('root');
const root = createRoot(container);
root.render(
<ErrorBoundary>
<Suspense fallback={<div />}>
<MotionConfig reducedMotion="user">
<App />
</MotionConfig>
</Suspense>
</ErrorBoundary>,
);