UNPKG

@wulperstudio/cms

Version:
25 lines 950 B
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; var _excluded = ["title", "children", "slotProps"]; import React from 'react'; import { Tooltip as MuiTooltip } from '@mui/material'; import { jsx as _jsx } from "react/jsx-runtime"; export var Tooltip = function Tooltip(_ref) { var _slotProps$tooltip; var title = _ref.title, children = _ref.children, slotProps = _ref.slotProps, props = _objectWithoutProperties(_ref, _excluded); return /*#__PURE__*/_jsx(MuiTooltip, Object.assign({ title: title, slotProps: Object.assign({ tooltip: Object.assign({ sx: Object.assign({ bgcolor: '#353E6C' }, slotProps == null || (_slotProps$tooltip = slotProps.tooltip) == null ? void 0 : _slotProps$tooltip.sx) }, slotProps == null ? void 0 : slotProps.tooltip) }, slotProps) }, props, { children: children })); }; Tooltip.displayName = 'Tooltip';