import React from "react";
import { NodeSelection } from "./../../tiptap/pm/state.js";
import PollViewer from "../viewer/poll-viewer.js";
const Poll = ({
  settings,
  componentData,
  node,
  updateAttributes,
  selected,
  editor
}) => {
  const block = { getKey: () => node.attrs.id };
  const isOnlySelected = selected && editor.state.selection instanceof NodeSelection && editor.state.selection.node.attrs.id === node.attrs.id;
  return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(
    PollViewer,
    {
      componentData,
      settings,
      updateAttributes,
      block,
      selected,
      isOnlySelected
    }
  ));
};
export {
  Poll
};
//# sourceMappingURL=component.js.map
