import React from 'react'
import ReactDOM from 'react-dom/client'
import { Buffer } from 'buffer'
import { EventEmitter } from 'events'
import App from './App.tsx'
import './index.css'
import './styles/mobile.css'

// Polyfill Buffer for browser
window.Buffer = Buffer
globalThis.Buffer = Buffer

// Polyfill EventEmitter for browser
window.EventEmitter = EventEmitter
globalThis.EventEmitter = EventEmitter

ReactDOM.createRoot(document.getElementById('root')!).render(
  <React.StrictMode>
    <App />
  </React.StrictMode>,
)

