'use client' import React from 'react' import { Search, ArrowRight } from 'lucide-react' export interface CommandResultItemProps { icon?: React.ElementType label: string detail?: string shortcut?: string selected: boolean /** Color class for icon container, e.g. 'bg-blue-100 text-blue-600' */ colorClass?: string /** Whether to show a trailing arrow (for navigation items) */ showArrow?: boolean onClick: () => void } export function CommandResultItem({ icon, label, detail, shortcut, selected, colorClass = 'bg-gray-100 text-gray-600', showArrow = false, onClick, }: CommandResultItemProps) { const Icon = icon || Search return (

{label}

{detail &&

{detail}

}
{shortcut && ( {shortcut} )} {showArrow && }
) }