/**
* Navigation component - App header with logo and navigation links
*/
import React from 'react';
import { Link, useLocation } from 'react-router-dom';
import {
AppBar,
Toolbar,
Typography,
Button,
Box,
IconButton,
} from '@mui/material';
import {
Dashboard as DashboardIcon,
CloudUpload as UploadIcon,
History as HistoryIcon,
CleaningServices as LogoIcon,
} from '@mui/icons-material';
const Navigation: React.FC = () => {
const location = useLocation();
const navItems = [
{ path: '/', label: 'Dashboard', icon: },
{ path: '/upload', label: 'Upload', icon: },
{ path: '/jobs', label: 'History', icon: },
];
const isActive = (path: string): boolean => {
if (path === '/') {
return location.pathname === '/';
}
return location.pathname.startsWith(path);
};
return (
{/* Logo */}
{/* App Title */}
DataClean AI
{/* Navigation Links */}
{navItems.map((item) => (
))}
{/* User Profile (placeholder) */}
User
);
};
export default Navigation;