import React, { memo } from "react"; import Icon, { IconSize } from "components/ads/Icon"; import { Button } from "@blueprintjs/core"; import { Colors } from "constants/Colors"; import { isNil } from "lodash"; import { isString } from "../../../utils/helpers"; import { StyledDiv } from "./index.styled"; export const isEmptyOrNill = (value: any) => { return isNil(value) || (isString(value) && value === ""); }; interface SelectButtonProps { disabled?: boolean; displayText?: string; handleCancelClick?: (event: React.MouseEvent) => void; togglePopoverVisibility: () => void; value?: string; } function SelectButton(props: SelectButtonProps) { const { disabled, displayText, handleCancelClick, togglePopoverVisibility, value, } = props; return (