import { Routes, Route } from 'react-router-dom'
import LoginPage from './pages/LoginPage'
import DashboardPage from './pages/DashboardPage'
import FacilityStatusPage from './pages/FacilityStatusPage'
import FacilityDetailPage from './pages/FacilityDetailPage'
import AccessLogPage from './pages/AccessLogPage'
import FloorLogPage from './pages/FloorLogPage'
import AllLogPage from './pages/AllLogPage'
import EmergencyAlertPage from './pages/EmergencyAlertPage'
import EmergencyFirePage from './pages/EmergencyFirePage'
import EvacueeListPage from './pages/EvacueeListPage'
import NonEvacueeListPage from './pages/NonEvacueeListPage'
import QRScanPage from './pages/QRScanPage'
import QRScanCompletePage from './pages/QRScanCompletePage'
import TagBatteryPage from './pages/TagBatteryPage'
import TagBatteryListPage from './pages/TagBatteryListPage'
import MyInfoPage from './pages/MyInfoPage'

function App() {
  return (
    <Routes>
      <Route path="/" element={<LoginPage />} />
      <Route path="/dashboard" element={<DashboardPage />} />
      <Route path="/facility-status" element={<FacilityStatusPage />} />
      <Route path="/facility-status/:facilityName" element={<FacilityDetailPage />} />
      <Route path="/facility-status/:facilityName/log/:locationName" element={<AccessLogPage />} />
      <Route path="/facility-status/:facilityName/floor-log/:floorName" element={<FloorLogPage />} />
      <Route path="/facility-status/:facilityName/all-log" element={<AllLogPage />} />
      <Route path="/emergency-alert" element={<EmergencyAlertPage />} />
      <Route path="/emergency-fire" element={<EmergencyFirePage />} />
      <Route path="/emergency-fire/evacuee-list" element={<EvacueeListPage />} />
      <Route path="/emergency-fire/non-evacuee-list" element={<NonEvacueeListPage />} />
      <Route path="/qr-scan" element={<QRScanPage />} />
      <Route path="/qr-scan/complete" element={<QRScanCompletePage />} />
      <Route path="/tag-battery" element={<TagBatteryPage />} />
      <Route path="/tag-battery/:type" element={<TagBatteryListPage />} />
      <Route path="/my-info" element={<MyInfoPage />} />
    </Routes>
  )
}

export default App
