import React, { useContext } from 'react' import { useTranslation } from 'react-i18next' import Icon from '../../../shared/components/icon' import TooltipButton from '../../../shared/components/tooltip-button' import { FileTreeMainContext } from '../contexts/file-tree-main' import { useFileTreeActionable } from '../contexts/file-tree-actionable' import FileTreeBadge from './file-tree-badge' function FileTreeToolbar() { const { hasWritePermissions } = useContext(FileTreeMainContext) if (!hasWritePermissions) return null return (