import { StrictMode } from 'react';

import ReactDOM from 'react-dom/client';

import App from '@/App';
import { ColorModeProvider } from './components/ui/color-mode';

// Render the app
const rootElement = document.getElementById('root');
if (rootElement && !rootElement.innerHTML) {
  const root = ReactDOM.createRoot(rootElement);
  root.render(
    <StrictMode>
      <ColorModeProvider>
        <App />
      </ColorModeProvider>
    </StrictMode>
  );
}
