Files
tabungin/apps/web/src/components/Breadcrumb.tsx
dwindown 249f3a9d7d feat: remove OTP gate from transactions, fix categories auth, add implementation plan
- Remove OtpGateGuard from transactions controller (OTP verified at login)
- Fix categories controller to use authenticated user instead of TEMP_USER_ID
- Add comprehensive implementation plan document
- Update .env.example with WEB_APP_URL
- Prepare for admin dashboard development
2025-10-11 14:00:11 +07:00

35 lines
868 B
TypeScript

import { ChevronRight, Home } from "lucide-react"
interface BreadcrumbProps {
currentPage: string
}
export function Breadcrumb({ currentPage }: BreadcrumbProps) {
const getPageTitle = (page: string) => {
switch (page) {
case '/':
return 'Overview'
case '/wallets':
return 'Wallets'
case '/transactions':
return 'Transactions'
case '/profile':
return 'Profile'
default:
return page.charAt(0).toUpperCase() + page.slice(1)
}
}
return (
<nav className="flex items-center space-x-1 text-sm text-muted-foreground">
<div className="flex items-center space-x-1">
<Home className="h-4 w-4" />
</div>
<ChevronRight className="h-4 w-4" />
<span className="font-medium text-foreground">
{getPageTitle(currentPage)}
</span>
</nav>
)
}