import { useTranslation } from 'react-i18next'; import { useAppStore } from '@/store/app-store'; import { btnClass, btnStyle } from '@/components/ui/buttons'; import { SearchInput } from './SearchInput'; import { ActionButtons } from './ActionButtons'; import { UndoRedoButtons } from './UndoRedoButtons'; interface ToolBarProps { onNew: () => void; onEdit: () => void; onBrowse: () => void; onDelete: () => void; onMoveUp: () => void; onMoveDown: () => void; onClean: () => void; onImport: () => void; onExport: () => void; onSave: () => void; onCancel: () => void; onHelp: () => void; onLanguage: () => void; onDarkMode: () => void; onAnalyze: () => void; onProfiles: () => void; } export function ToolBar(props: ToolBarProps) { const { t } = useTranslation(); const isAdmin = useAppStore((s) => s.isAdmin); const isModified = useAppStore((s) => s.isModified); return (