import { Menu, Network, RotateCcw } from 'lucide-react'; import { useNavigate } from 'react-router-dom'; import { useRepoStore } from '../../store/useRepoStore'; import StatusPill from '../shared/StatusPill'; export default function TopBar({ title, subtitle, action }) { const navigate = useNavigate(); const { repoId, resetAll } = useRepoStore(); const reset = () => { resetAll(); navigate('/ingest'); }; return (

{title}

{subtitle &&

{subtitle}

}
{repoId && Repository ready} IBM Bob {action} {repoId && ( )}
); }