"use client"; import { Trash2 } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "@/components/ui/select"; import { SearchInput } from "@/components/shared/search-input"; import { useI18n } from "@/i18n/i18n-context"; interface DocToolbarProps { searchQuery: string; onSearchChange: (query: string) => void; statusFilter: string; onStatusFilterChange: (status: string) => void; selectedCount: number; onBatchDelete?: () => void; } export function DocToolbar({ searchQuery, onSearchChange, statusFilter, onStatusFilterChange, selectedCount, onBatchDelete, }: DocToolbarProps) { const { t } = useI18n(); const statusOptions: { value: string; label: string }[] = [ { value: "all", label: t("documents.toolbar.statusAll") }, { value: "Pending", label: t("status.pending") }, { value: "Indexing", label: t("status.indexing") }, { value: "Completed", label: t("status.completed") }, { value: "Failed", label: t("status.failed") }, ]; return (
{selectedCount > 0 && ( )}
); }