import React from 'react'; interface PathBarProps { currentPath: string; canGoBack: boolean; canGoForward: boolean; onNavigateBack: () => void; onNavigateForward: () => void; currentMode?: 'api' | 'sharing' | null; hasCustomPath?: boolean; isCustomPath?: boolean; onSaveCustomPath?: () => void; isSavingCustomPath?: boolean; searchQuery?: string; onSearchChange?: (query: string) => void; } /** * PathBar component hiển thị đường dẫn hiện tại và nút điều hướng Back/Forward */ export function PathBar({ currentPath, canGoBack, canGoForward, onNavigateBack, onNavigateForward, currentMode = null, hasCustomPath = false, isCustomPath = false, onSaveCustomPath, isSavingCustomPath = false, searchQuery = '', onSearchChange, }: PathBarProps) { return (
{/* Navigation Buttons */}
{/* Current Path - Highlight if custom path */}
{currentPath || '/'}
{/* Search Input */} {onSearchChange && (
onSearchChange(e.target.value)} placeholder="Tìm kiếm..." className="w-32 px-3 py-1.5 text-sm bg-slate-800 border border-slate-600 rounded-lg text-slate-200 placeholder-slate-500 focus:outline-none focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 transition-colors" />
)} {/* Save Custom Path Button - Only show in Sharing mode */} {onSaveCustomPath && currentMode === 'sharing' && ( )}
); }