- Add goals feature (models, migrations, API, web pages) - Add reserved/centralized wallet balance service - Add wallet detail page and overview components - Add new UI components (progress, multi-select, FAB) - Remove stray empty -H/-d files from working tree
34 lines
906 B
TypeScript
Executable File
34 lines
906 B
TypeScript
Executable File
import { ChevronRight, Shield } from 'lucide-react'
|
|
|
|
interface AdminBreadcrumbProps {
|
|
currentPage: string
|
|
}
|
|
|
|
const pageNames: Record<string, string> = {
|
|
'/admin': 'Dashboard',
|
|
'/admin/plans': 'Plans',
|
|
'/admin/payment-methods': 'Payment Methods',
|
|
'/admin/payments': 'Payments',
|
|
'/admin/users': 'Users',
|
|
'/admin/settings': 'Settings',
|
|
}
|
|
|
|
export function AdminBreadcrumb({ currentPage }: AdminBreadcrumbProps) {
|
|
const pageName = pageNames[currentPage] || 'Admin'
|
|
|
|
return (
|
|
<nav className="flex items-center space-x-1 text-sm text-muted-foreground">
|
|
<div className="flex items-center space-x-1">
|
|
<Shield className="h-4 w-4" />
|
|
<span>Admin</span>
|
|
</div>
|
|
{currentPage !== '/admin' && (
|
|
<>
|
|
<ChevronRight className="h-4 w-4" />
|
|
<span className="font-medium text-foreground">{pageName}</span>
|
|
</>
|
|
)}
|
|
</nav>
|
|
)
|
|
}
|