// main.tsx 或 index.tsx
import React from 'react';
import { createRoot } from 'react-dom/client';
import App from './App';
import { LoadingProvider } from '@/components/LoadingContext';

const container = document.getElementById('root');
if (container) {
  const root = createRoot(container);
  root.render(
    <React.StrictMode>
      <LoadingProvider>
        <App />
      </LoadingProvider>
    </React.StrictMode>
  );
}