@dndbuilder.com/react
Version:
Drag and drop builder for React
9 lines (8 loc) • 780 B
JavaScript
"use client";
import { jsx as r } from "react/jsx-runtime";
import { Position as t } from "../../types/style.js";
const f = ({ position: l }) => l === t.TOP ? /* @__PURE__ */ r("div", { className: "absolute left-0 top-0 z-20 h-2 w-full -translate-y-full transform bg-gray-100" }) : l === t.RIGHT ? /* @__PURE__ */ r("div", { className: "absolute right-0 top-0 z-20 h-full w-2 translate-x-full transform bg-gray-100" }) : l === t.BOTTOM ? /* @__PURE__ */ r("div", { className: "absolute bottom-0 left-0 z-20 h-2 w-full translate-y-full transform bg-gray-100" }) : l === t.LEFT ? /* @__PURE__ */ r("div", { className: "absolute left-0 top-0 z-20 h-full w-2 -translate-x-full transform bg-gray-100" }) : null;
export {
f as default
};
//# sourceMappingURL=block-placeholder.js.map