message: CustomSelect: update types
diff: +import * as React from "react";
  +import { getTitleFromChildren } from "./utils";
  import { FormFieldMode } from "../components/FormField/FormField";
  import { SelectType } from "../components/Select/Select";
  type Option = {
  - label?: string;
  + label?: React.ReactElement | string;
  [index: string]: any;
  };
  -type GetOptionLabel = (option: Option) => string | undefined;
  -
  const findAllIncludes = (target = "", search = "") => {
  const includes = [];
  @@ -27,10 +27,15 @@ try {
  letterRegexp = new RegExp("\\p{L}", "u");
  } catch (e) {}
  +type GetOptionLabel = (option: Option) => string | undefined;
  +
  +const _getOptionLabel: GetOptionLabel = (option) =>
  + getTitleFromChildren(option.label);
  +
  export const defaultFilterFn = (
  query = "",
  option: Option,
  - getOptionLabel: GetOptionLabel = (option) => option.label
  + getOptionLabel: GetOptionLabel = _getOptionLabel
  ) => {
  query = query.toLocaleLowerCase();
  let label = getOptionLabel(option)?.toLocaleLowerCase();
  