import { StrictMode } from "react"
import { createRoot } from "react-dom/client"
import { BrowserRouter, Route, Routes } from "react-router"
import "./index.css"
import App from "./App.tsx"
import SyllabusEditor from "./components/syllabus/SyllabusEditor.tsx"
import { Toaster } from "react-hot-toast"
createRoot(document.getElementById("root")!).render(
  <StrictMode>
    <Toaster />
    <BrowserRouter>
      <Routes>
        <Route path="/creator" element={<App />} />
        <Route path="/creator/syllabus" element={<SyllabusEditor />} />
      </Routes>
    </BrowserRouter>
  </StrictMode>
)
