import { Command } from 'lucide-react' import { ReactNode } from 'react' import { cn } from 'ui' import { detectOS } from '@/lib/helpers' interface CommandOptionProps { icon: ReactNode label: string shortcut: string onClick: () => void } export const CommandOption = ({ icon, label, shortcut, onClick }: CommandOptionProps) => { const os = detectOS() return (
{icon}

{label}

{/* Issue with `os` and hydration fail */} {os === 'macos' || true ? ( ) : (

CTRL

)}

{shortcut}

) }