/**
 * Group and export components.
 */
import React from "react";
import ReactDOM from "react-dom";
import { BugButton } from "./BugButton";

window.showBugButton = (props) => {
  props.position = props.position || "bottom-right";
  const button = React.createElement(BugButton, props, null);
  const el = document.createElement("div");
  document.body.appendChild(el);
  ReactDOM.render(button, el);
};

export { BugButton };
