mirror of
https://git.aramjonghu.dev/AramJonghu/aramjonghu-site.git
synced 2026-09-12 17:33:30 +02:00
19 lines
366 B
React
19 lines
366 B
React
import "./App.css";
|
|
|
|
import Layout from "./components/Layout";
|
|
import Home from "./pages/Home";
|
|
import Stream from "./pages/Stream";
|
|
|
|
function App() {
|
|
const path = window.location.pathname.toLowerCase();
|
|
|
|
let content = <Home />;
|
|
if (path === "/stream") {
|
|
content = <Stream />;
|
|
}
|
|
|
|
return <Layout>{content}</Layout>;
|
|
}
|
|
|
|
export default App;
|