import { jsx } from "react/jsx-runtime";
import { b as useBrickStyle } from "./use-section-style.DjjgfIQS.js";
import { bB as manifest } from "./use-page-data.CMUQyNAA.js";
import "@sinclair/typebox";
import { T as TextContent } from "./TextContent.fGn2nGQK.js";
import { a as tx } from "./twind.DdSZmZu6.js";
import { B as BrickRoot } from "./BrickRoot.D_a_fRJm.js";
import { u as useBrickProps } from "./use-brick-props.BH1ptgVL.js";
function Text(_props) {
  const { brick, editable } = _props;
  const props = useBrickProps(_props);
  const styles = useBrickStyle(brick);
  const classes = Object.values(styles);
  return /* @__PURE__ */ jsx(
    BrickRoot,
    {
      brick,
      editable,
      manifest,
      className: tx("flex grow h-full", classes),
      children: /* @__PURE__ */ jsx(
        TextContent,
        {
          propPath: "content",
          className: tx("text-pretty grow prose"),
          brickId: brick.id,
          content: props.content,
          rawContent: brick.props.content,
          editable
        }
      )
    }
  );
}
export {
  Text as default
};
//# sourceMappingURL=text.D0YUNhR7.js.map
