"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.UIHover = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = require("react");
function UIHover(props) {
    const [hovered, setHovered] = (0, react_1.useState)(false);
    return ((0, jsx_runtime_1.jsx)("div", { onMouseEnter: () => setHovered(true), onMouseLeave: () => setHovered(false), children: props.renderControl(hovered) }));
}
exports.UIHover = UIHover;
//# sourceMappingURL=UIHover.js.map