geoiq-frontend-ui-kit
Version:
This project is a UI kit for GeoIQ's frontend. It's built with React, TypeScript, and Vite.
27 lines (26 loc) • 645 B
JavaScript
import t from "react";
import { Html as a } from "react-konva-utils";
import { X as m } from "lucide-react";
const s = ({ x: e, y: o, onClick: l }) => /* @__PURE__ */ t.createElement(a, null, /* @__PURE__ */ t.createElement(
"div",
{
role: "button",
className: "absolute z-10",
style: { left: `${e - 20}px`, top: `${o - 20}px` }
},
/* @__PURE__ */ t.createElement(
m,
{
className: "cursor-pointer text-black hover:text-gray-700",
height: 18,
width: 18,
onClick: (r) => {
r.stopPropagation(), l();
}
}
)
));
export {
s as default
};
//# sourceMappingURL=index.es88.js.map