import { clsx } from 'clsx'; import { useContext } from 'react'; import { SelectInputOptionContentWithinTriggerContext } from '../SelectInput.contexts'; export interface SelectInputOptionContentProps { title: React.ReactNode; note?: string; description?: string; icon?: React.ReactNode; } /** * Component for rendering structured content within a SelectInput option. * Supports title, optional note, description, and icon with different styling * based on whether it's rendered within the trigger button or the dropdown. */ export function SelectInputOptionContent({ title, note, description, icon, }: SelectInputOptionContentProps) { const withinTrigger = useContext(SelectInputOptionContentWithinTriggerContext); return (