import { Routes, Route, Navigate } from 'react-router-dom'
import MenuPage from './pages/MenuPage'
import OrderConfirm from './pages/OrderConfirm'

export default function App() {
  return (
    <Routes>
      <Route path="/:siteSlug" element={<MenuPage />} />
      <Route path="/:siteSlug/confirm/:ref" element={<OrderConfirm />} />
      <Route path="*" element={<Navigate to="/" replace />} />
    </Routes>
  )
}
