// 必须使用 HashRouter 路由，不能使用别的 Router
import { Routes, Route, HashRouter as Router } from 'react-router'
import Layout from './components/Layout'
import SplitCheck from './pages/SplitCheck'
import DNSLeak from './pages/DNSLeak'

function App() {
  return (
    <Router>
      <Layout>
        <Routes>
          <Route path="/" element={<SplitCheck />} />
          <Route path="/dns-leak" element={<DNSLeak />} />
        </Routes>
      </Layout>
    </Router>
  )
}

export default App
