import { StrictMode } from 'react';
import { createRoot } from "react-dom/client";
import { App } from './App';
import { initTelegramApp } from './shared/telegram';

// Initialize Telegram Mini App SDK before rendering
initTelegramApp();

const rootEl = document.getElementById('root');
if (!rootEl) {
  throw new Error('Root element not found');
}

createRoot(rootEl).render(
  <StrictMode>
    <App />
  </StrictMode>,
);
