import * as React from 'react'; import { cn } from '@/lib/utils'; import type { DropdownMenuItemProps } from './types'; export const DropdownMenuItem = React.forwardRef< HTMLButtonElement, DropdownMenuItemProps >(({ className, inset, onKeyDown, onClick, ...props }, ref) => { const handleKeyDown = (e: React.KeyboardEvent) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); if (onClick && !props.disabled) { (onClick as (e: React.KeyboardEvent) => void)(e); } } onKeyDown?.(e); }; return (