"use client"; import { FilePlus2, FileUp, Loader2, Pencil, RefreshCw, Save, Trash2, } from "lucide-react"; import { Button } from "@/components/ui/button"; import { useI18n } from "@/i18n/i18n-context"; export function FileWorkspaceToolbar({ readOnly, loading, hasSelection, binarySelection, dirty, saving, onCreate, onUpload, onRename, onDelete, onRefresh, onSave, }: { readOnly: boolean; loading: boolean; hasSelection: boolean; binarySelection: boolean; dirty: boolean; saving: boolean; onCreate: () => void; onUpload: () => void; onRename: () => void; onDelete: () => void; onRefresh: () => void; onSave: () => void; }) { const { t } = useI18n(); return (
{readOnly ? t("memory.files.readOnlyMode") : t("memory.files.writableMode")}
); }