diff --git a/app/w/components/workflow-block/components/action-bar/action-bar.tsx b/app/w/components/workflow-block/components/action-bar/action-bar.tsx index 8422cba5b..da057c2f7 100644 --- a/app/w/components/workflow-block/components/action-bar/action-bar.tsx +++ b/app/w/components/workflow-block/components/action-bar/action-bar.tsx @@ -1,5 +1,5 @@ import { Button } from '@/components/ui/button' -import { Trash2, Play, Circle, CircleOff } from 'lucide-react' +import { Trash2, Play, Circle, CircleOff, Copy } from 'lucide-react' import { useWorkflowStore } from '@/stores/workflow/workflow-store' import { Tooltip, @@ -16,6 +16,7 @@ export function ActionBar({ blockId }: ActionBarProps) { const toggleBlockEnabled = useWorkflowStore( (state) => state.toggleBlockEnabled ) + const duplicateBlock = useWorkflowStore((state) => state.duplicateBlock) const isEnabled = useWorkflowStore( (state) => state.blocks[blockId]?.enabled ?? true ) @@ -36,6 +37,20 @@ export function ActionBar({ blockId }: ActionBarProps) { Delete Block + + + + + Duplicate Block + +