mirror of
https://github.com/usememos/memos.git
synced 2025-10-17 09:46:55 +08:00
14 lines
311 B
TypeScript
14 lines
311 B
TypeScript
import { useContext } from "react";
|
|
import appContext from "./stores/appContext";
|
|
import { appRouterSwitch } from "./routers";
|
|
import "./less/app.less";
|
|
|
|
function App() {
|
|
const {
|
|
locationState: { pathname },
|
|
} = useContext(appContext);
|
|
|
|
return <>{appRouterSwitch(pathname)}</>;
|
|
}
|
|
|
|
export default App;
|