import React from "react";
import {
Popover,
Menu,
MenuItem,
IMenuProps,
IMenuItemProps,
} from "@blueprintjs/core";
type Props = {
children: React.ReactElement[] | React.ReactElement;
};
function Select(props: Props) {
const menus =
(Array.isArray(props.children) &&
props.children.find(
(child: any) => child.type.displayName === "SelectList",
)) ||
undefined;
const trigger =
Array.isArray(props.children) &&
props.children.find(
(child: any) => child.type.displayName === "SelectTrigger",
);
return (