import { j as jsxRuntimeExports } from "./jsx-runtime.CXYVdt5g.js";
import { b as useBrickStyle } from "./use-section-style.BVVfH7jL.js";
import { bA as manifest } from "./use-page-data.iZIVKDBc.js";
import "@sinclair/typebox";
import "lodash-es";
import { T as TextContent } from "./TextContent.CnbgDoW3.js";
import { a as tx } from "./twind.B1qQmF_s.js";
import { B as BrickRoot } from "./BrickRoot.C4Jpjw20.js";
import { u as useBrickProps } from "./use-brick-props.VTbacgDB.js";
function Text(_props) {
  const { brick, editable } = _props;
  const props = useBrickProps(_props);
  const styles = useBrickStyle(brick);
  const classes = Object.values(styles);
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
    BrickRoot,
    {
      brick,
      editable,
      manifest,
      className: tx("flex grow h-full", classes),
      children: /* @__PURE__ */ jsxRuntimeExports.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.DVlQrpjK.js.map
