import { Route, Routes } from 'react-router-dom';
import { FC, Suspense } from 'react';
import React from 'react';

const Recharge = React.lazy(() => import("@p/Recharge/index"))
const RechargeRecords = React.lazy(() => import("@p/RechargeRecords/index"))
const Return = React.lazy(() => import("@p/Return/index"))
const App: FC = () => {
  return (
    <Suspense>
      <Routes>
        <Route path="/recharge" element={<Recharge />} />
        <Route path="/rechargeRecords" element={<RechargeRecords />} />
        <Route path="/return" element={<Return />} />
      </Routes>
    </Suspense>
  )
}

export default App;