'use client' import { useState } from 'react' import Link from 'next/link' interface NavigationButtonProps { id: string title: string icon: string items?: Array<{ title: string href: string }> } export function NavigationButton({ id, title, icon, items }: NavigationButtonProps) { const [isExpanded, setIsExpanded] = useState(false) if (!items?.length) { return ( {title} ) } return (
{isExpanded && ( )}
) }