import { Button } from '@/components/ui/button'; import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover'; import { cn } from '@/lib/utils'; import Link from 'next/link'; import type { PropsWithChildren } from 'react'; interface EllipsisDropdownProps extends PropsWithChildren { items: { label: string; href?: string; }[]; className?: string; } /** * Renders a dropdown component for collapsed breadcrumb items. */ export function EllipsisDropdown({ items, className }: EllipsisDropdownProps) { return ( {items.map(({ label, href }) => ( {label} ))} ); }