import { memo } from 'react' import { useTranslation } from 'react-i18next' import { MiniMap } from 'reactflow' import { useNodesReadOnly, useWorkflow, } from '../hooks' import ZoomInOut from './zoom-in-out' import { OrganizeGrid } from '@/app/components/base/icons/src/vender/line/layout' import TooltipPlus from '@/app/components/base/tooltip-plus' const Operator = () => { const { t } = useTranslation() const { handleLayout } = useWorkflow() const { nodesReadOnly, getNodesReadOnly, } = useNodesReadOnly() const goLayout = () => { if (getNodesReadOnly()) return handleLayout() } return (
) } export default memo(Operator)