src/components/dropdown.tsx'use client'import Link from 'next/link'import clsx from 'clsx'import { useState, useMemo, useRef, useEffect } from 'react'import { Icon } from '@/components/icon'import chevronDownIcon from '@iconify/icons-heroicons/chevron-down'import type { IconifyIcon } from '@iconify/types'export interface DropdownItem {label: stringhref?: stringonClick?: () => voidcount?: number}interface DropdownProps {label: stringitems: DropdownItem[]className?: string
Showing the first 20 lines.
Get full code