import { Routes, Route } from "react-router-dom";
import AppShell from "./components/shared/AppShell";
import ComposeView from "./routes/ComposeView";
import BrowseView from "./routes/BrowseView";
import EditorView from "./routes/EditorView";

export default function App() {
  return (
    <AppShell>
      <Routes>
        <Route path="/" element={<ComposeView />} />
        <Route path="/browse" element={<BrowseView />} />
        <Route path="/editor/new" element={<EditorView />} />
        <Route path="/editor/:name" element={<EditorView />} />
      </Routes>
    </AppShell>
  );
}
