import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import './index.css'
import App from './App.tsx'
import { ComposeWindow } from './ComposeWindow.tsx'

const isComposeWindow = new URLSearchParams(window.location.search).has('compose')

createRoot(document.getElementById('root')!).render(
  <StrictMode>{isComposeWindow ? <ComposeWindow /> : <App />}</StrictMode>,
)
