import s from "./index-extends.js";
import f from "./index-defineProperty.js";
import d, { forwardRef as i, PureComponent as m } from "react";
import p from "./index-Parser.js";
class o extends m {
  componentDidUpdate() {
    const {
      handleParse: e
    } = this.props;
    e();
  }
  render() {
    const {
      href: e,
      width: t,
      showText: n,
      children: a
    } = this.props;
    return d.createElement("div", {
      className: "fb-post",
      "data-href": e,
      "data-width": t,
      "data-show-text": n
    }, a);
  }
}
f(o, "defaultProps", {
  width: void 0,
  showText: void 0,
  children: void 0
});
const P = i((r, e) => d.createElement(p, null, ({
  handleParse: t
}) => d.createElement(o, s({}, r, {
  handleParse: t,
  ref: e
}))));
export {
  P as default
};
