import React from 'react'; import { Link, usePage } from '@inertiajs/react'; import { LayoutGrid, Search, Users, MessageSquare, User, Bell } from 'lucide-react'; export default function EmployerMobileLayout({ children, title }) { const { url } = usePage(); const navItems = [ { label: 'Home', icon: LayoutGrid, href: '/mobile/employer/home' }, { label: 'Find Workers', icon: Search, href: '/mobile/employer/workers' }, { label: 'Candidates', icon: Users, href: '/mobile/employer/candidates' }, { label: 'Chat', icon: MessageSquare, href: '/mobile/employer/messages', badge: 3 }, { label: 'Profile', icon: User, href: '/mobile/employer/profile' }, ]; const isActive = (href) => url.startsWith(href); return (
{/* Content Area */}
{children}
{/* Bottom Navigation */}
{navItems.map((item) => { const active = isActive(item.href); return (
{item.badge && (
{item.badge}
)}
{item.label} {active && (
)} ); })}
); }