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-EVDZ2KND.js";
import "../../../../sdk/dist/shared/chunk-6PGAWO4H.js";
import "../../../../sdk/dist/shared/chunk-F4JNKU7J.js";
import "@sinclair/typebox";
import "../../../../sdk/dist/shared/chunk-7UBMXMNJ.js";
import "../../../../sdk/dist/shared/chunk-JRCVYDCD.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 prose"),
          brickId: t.id,
          content: i.content,
          rawContent: t.props.content,
          editable: r
        }
      )
    }
  );
}
export {
  N as default
};
//# sourceMappingURL=text.js.map
