import React from 'react'
import ReactDOM from 'react-dom/client'
import './index.css'
import Receiver from './Receiver'

const id = window.location.search?.substring(1)

ReactDOM.createRoot(document.getElementById('root')!).render(
  <React.StrictMode>
    {id && <Receiver id={id}/>}
    {!id && <p>Specify an identifier in the query string</p>}
  </React.StrictMode>,
)
