import React, { forwardRef } from "react";
import classnames from "classnames";
import { StyledIconComponent } from "./Styles";
import { IconButton } from "../IconButton";
import { Tooltip } from "../Tooltip";
export const SelectDateTarget = /*#__PURE__*/forwardRef((_ref, ref) => {
  let {
    icon: IconComponent,
    title = "",
    onClick,
    forceHideTooltip = false,
    targetIconClassName,
    popperTooltipStyle,
    popperTooltipClassName,
    active = false
  } = _ref;
  return /*#__PURE__*/React.createElement(Tooltip, {
    title: title,
    popperTooltipStyle: popperTooltipStyle,
    popperTooltipClassName: popperTooltipClassName,
    disable: forceHideTooltip || title === ""
  }, /*#__PURE__*/React.createElement(IconButton, {
    variant: "text gray",
    size: "small",
    active: active,
    ref: ref,
    onClick: onClick,
    type: "button"
  }, /*#__PURE__*/React.createElement(StyledIconComponent, {
    as: IconComponent,
    className: classnames("date-picker-target", targetIconClassName)
  })));
});
SelectDateTarget.displayName = "SelectDateTarget";
//# sourceMappingURL=SelectDateTarget.js.map