import { j as e } from "../../../../../_virtual/jsx-runtime.js";
import { useBrickStyle as p } from "../hooks/use-brick-style.js";
import { a as c } from "../../../../sdk/dist/shared/chunk-JS4K5JRM.js";
import "@sinclair/typebox";
import "../../../../sdk/dist/shared/chunk-UU2MSQXY.js";
import "../../../../sdk/dist/shared/chunk-YBGPPF7T.js";
import "../../../../sdk/dist/shared/chunk-UMHXXXVP.js";
import "../../../../sdk/dist/shared/chunk-5N6MBJJ4.js";
import a from "../components/TextContent.js";
import { tx as s } from "../../../../style-system/dist/twind.js";
import f from "../components/BrickRoot.js";
import { useBrickProps as l } from "../hooks/use-brick-props.js";
function N(o) {
  const { brick: t, editable: r } = o, i = l(o), m = p(t), n = Object.values(m);
  return /* @__PURE__ */ e.jsx(
    f,
    {
      brick: t,
      editable: r,
      manifest: c,
      className: s("flex grow h-full", n),
      children: /* @__PURE__ */ e.jsx(
        a,
        {
          propPath: "content",
          className: s("text-pretty grow"),
          brickId: t.id,
          content: i.content,
          rawContent: t.props.content,
          editable: r
        }
      )
    }
  );
}
export {
  N as default
};
//# sourceMappingURL=text.js.map
