import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import { App } from './App';
// Streamdown's markdown renderer (Piggy's answers) emits its own markup with
// prebuilt styles. Its package `exports` map hides the package root, so there
// is no path Tailwind's content globs could scan; this stylesheet is the
// supported way to have that markup styled. Ahead of index.css so PIG's own
// layers stay last.
import 'streamdown/styles.css';
import './index.css';

const container = document.getElementById('root');
if (!container) throw new Error('No #root element in the document.');

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