import { useState } from 'react' import { Link } from 'react-router-dom' import { Plus, ChevronDown, FolderTree, ListOrdered } from 'lucide-react' import { cn } from '@/lib/utils' interface CreateFlowDropdownProps { className?: string /** Button label — defaults to "Create Flow" */ label?: string } export function CreateFlowDropdown({ className, label = 'Create Flow', }: CreateFlowDropdownProps) { const [showMenu, setShowMenu] = useState(false) return (
{showMenu && ( <>
setShowMenu(false)} />
setShowMenu(false)} className="flex items-center gap-3 rounded-md px-3 py-2.5 text-sm text-foreground hover:bg-[var(--color-bg-elevated)] transition-colors" >
Troubleshooting Flow
Branching decision flow
setShowMenu(false)} className="flex items-center gap-3 rounded-md px-3 py-2.5 text-sm text-foreground hover:bg-[var(--color-bg-elevated)] transition-colors" >
Procedural Flow
Step-by-step procedure
)}
) }