import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';

// Design tokens come from clubtools-core. Until core is published as a package,
// this is a relative path (see CLAUDE.md).
import '../../clubtools-core/src/tokens.css';

import { App } from './App';

const container = document.getElementById('root');
if (!container) {
  throw new Error('Root element #root not found in index.html');
}

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