'use client' import type { ToolWithProvider } from '@/app/components/workflow/types' 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' import { cn } from '@/utils/classnames' type Props = { open: boolean provider?: ToolWithProvider value?: { provider_name: string tool_name: string } isConfigure?: boolean } const ToolTrigger = ({ open, provider, value, isConfigure, }: Props) => { const { t } = useTranslation() return (