import {createContext} from "react";
import {MultiSelectSearchItemContext, MultiSelectSearchItemOptions} from "./MultiSelectSearchItem";

export type SelectOptionRenderer<ExpectedValue = any> = {
    type: string,
    render: (value: ExpectedValue, options: MultiSelectSearchItemOptions | undefined) => React.ReactNode
}
export const SelectOptionRenderersContext = createContext<SelectOptionRenderer[]>([])