/* Copyright 2026 Marimo. All rights reserved. */ import * as React from "react"; import { ComboboxItem } from "../combobox"; import type { Option, OptionState } from "./types"; interface OptionRowProps { option: Option; checked: boolean; renderOption?: (option: Option, state: OptionState) => React.ReactNode; } function OptionRowImpl({ option, checked, renderOption, }: OptionRowProps): React.JSX.Element { return ( {renderOption ? renderOption(option, { checked }) : option.label} ); } export const OptionRow = React.memo(OptionRowImpl) as typeof OptionRowImpl;