'use client'; import React from 'react'; import { Home, Grid, Scan, User, Search } from 'lucide-react'; import { usePathname } from 'next/navigation'; interface BottomNavigationProps { onHome?: () => void; onShelf?: () => void; onSearch?: () => void; onProfile?: () => void; onScan: (file: File) => void; } export const BottomNavigation = ({ onHome, onShelf, onSearch, onProfile, onScan }: BottomNavigationProps) => { const fileInputRef = React.useRef(null); const handleScanClick = () => { fileInputRef.current?.click(); }; const handleFileChange = (e: React.ChangeEvent) => { const file = e.target.files?.[0]; if (file) { onScan(file); } }; return (
{/* Hidden Input for Scanning */}
{/* Left Items */} {/* PRIMARY ACTION - The "Industrial Button" */} {/* Right Items */}
); };