import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App'
import { useStore } from './store'
import './styles/global.css'

// 调试便利：暴露 store 到全局（生产保留无碍）
declare global {
  interface Window {
    __store: typeof useStore
  }
}
window.__store = useStore

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