generated from google-gemini/aistudio-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
24 lines (21 loc) · 653 Bytes
/
App.tsx
File metadata and controls
24 lines (21 loc) · 653 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import React from 'react';
import { HashRouter, Routes, Route } from 'react-router-dom';
import SearchPage from './pages/SearchPage';
import DetailPage from './pages/DetailPage';
import Header from './components/Header';
const App: React.FC = () => {
return (
<HashRouter>
<div className="min-h-screen bg-eerie-black font-sans">
<Header />
<main className="container mx-auto px-4 py-8">
<Routes>
<Route path="/" element={<SearchPage />} />
<Route path="/anime/:id" element={<DetailPage />} />
</Routes>
</main>
</div>
</HashRouter>
);
};
export default App;