import { Button } from '@langgenius/dify-ui/button' import { Tooltip, TooltipContent, TooltipTrigger } from '@langgenius/dify-ui/tooltip' import { memo } from 'react' import { useTranslation } from 'react-i18next' import { useStore } from '@/app/components/workflow/store' const DifyBuilderButton = ({ disabled }: { disabled: boolean }) => { const { t } = useTranslation() const setShowDifyBuilderPanel = useStore((s) => s.setShowDifyBuilderPanel) const label = t(($) => $['difyBuilder.buttonTooltip'], { ns: 'workflow' }) const handleClick = () => { setShowDifyBuilderPanel(true) } return ( {label} } /> {label} ) } export default memo(DifyBuilderButton)