import { h as e } from "./chunk.BlbRoQQ3.js";
import { c as t } from "./twind.BiM9xcCd.js";
import { b as n } from "./jsx-runtime.DF4K5VCp.js";
import { C as r, d as i, q as a } from "./react.BZZIbN3T.js";
var o = /* @__PURE__ */ e(n());
function s({ as: e, children: n, manifest: s, className: c, editable: l, brick: u,...d }) {
	let f = i({
		id: u.id,
		data: {
			brick: u,
			manifest: s
		},
		disabled: !l || !s.isContainer,
		type: "brick",
		accept: (e) => e.type === "brick" || e.type === "library",
		collisionDetector: a,
		collisionPriority: r.High
	}), p = e || "div";
	return /* @__PURE__ */ (0, o.jsx)(p, {
		...d,
		ref: f.ref,
		className: t(!s.isContainer && "min-h-fit min-w-fit", "flex flex-1 rounded-[inherit] w-fill h-fill flex-wrap", c),
		children: n
	});
}
export { s as b };

//# sourceMappingURL=BrickRoot.DbISziyH.js.map