import React, { useRef } from 'react'; import { ComboboxProps } from '../combobox/combobox'; import { CustomSelectProps } from '../select/custom'; import { OptionListEvent } from './option-list'; import { OptionListProvider } from './useOptionList'; export const OptionListInit = ({ children, defaultValue, value, onInit, }: ( | Pick | Pick ) & { onInit: (selected: OptionListEvent) => void; }) => { const hasInit = useRef(false); const currentValue = value ?? defaultValue; return (
{children}
); }; const noop = () => void 0;