'use client' import type { ToolWithProvider } from '@/app/components/workflow/types' import { cn } from '@langgenius/dify-ui/cn' import { RiArrowDownSLine, RiEqualizer2Line, } from '@remixicon/react' import * as React from 'react' import { useTranslation } from 'react-i18next' import BlockIcon from '@/app/components/workflow/block-icon' import { BlockEnum } from '@/app/components/workflow/types' type Props = Readonly<{ open: boolean provider?: ToolWithProvider value?: { provider_name: string tool_name: string } isConfigure?: boolean }> const ToolTrigger = ({ open, provider, value, isConfigure, }: Props) => { const { t } = useTranslation() return (