first commit

This commit is contained in:
dwindown
2025-10-09 12:52:41 +07:00
commit 0da6071eb3
205 changed files with 30980 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
import { useState } from "react"
import { DashboardLayout } from "./layout/DashboardLayout"
import { Overview } from "./pages/Overview"
import { Wallets } from "./pages/Wallets"
import { Transactions } from "./pages/Transactions"
export function Dashboard() {
const [currentPage, setCurrentPage] = useState("/")
const renderPage = () => {
switch (currentPage) {
case "/":
return <Overview />
case "/wallets":
return <Wallets />
case "/transactions":
return <Transactions />
default:
return <Overview />
}
}
return (
<DashboardLayout currentPage={currentPage} onNavigate={setCurrentPage}>
{renderPage()}
</DashboardLayout>
)
}