import 'core-js/modules/es.object.assign.js';
import { __rest } from '../../../_virtual/_tslib.js';
import { jsx } from 'react/jsx-runtime';
import { Tooltip as Tooltip$1 } from '@mui/material';
import * as React from 'react';

const WrapperComponent = /*#__PURE__*/React.forwardRef(function MyComponent(tooltipProps, ref) {
  const {
      children,
      color
    } = tooltipProps,
    props = __rest(tooltipProps
    //  Spread the props to the underlying DOM element.
    , ["children", "color"]);
  //  Spread the props to the underlying DOM element.
  return jsx("div", Object.assign({}, props, {
    className: `truncate ${color || ''}`,
    ref: ref
  }, {
    children: children
  }));
});
const Tooltip = _a => {
  var {
      children
    } = _a,
    props = __rest(_a, ["children"]);
  return jsx(Tooltip$1, Object.assign({}, props, {
    children: jsx(WrapperComponent, Object.assign({
      color: props.color
    }, {
      children: children
    }))
  }));
};

export { Tooltip, Tooltip as default };
