// src/apollo/Feedback/FeedbackContainer.tsx
import { graphql, useLazyLoadQuery } from "@nova/react";
import { FeedbackComponent } from "./Feedback.mjs";
import * as React from "react";
var FeedbackContainerQuery = graphql`
  query FeedbackContainerQuery($id: ID!) {
    feedback(id: $id) {
      ...Feedback_feedbackFragment
    }
  }
`;
var FeedbackContainer = () => {
  const { data, error } = useLazyLoadQuery(FeedbackContainerQuery, {
    id: "42"
  });
  if (data) {
    return /* @__PURE__ */ React.createElement(FeedbackComponent, { feedback: data.feedback });
  } else {
    if (!error) {
      return /* @__PURE__ */ React.createElement("div", null, "Loading...");
    } else {
      return /* @__PURE__ */ React.createElement("div", null, "Error: ", error.message);
    }
  }
};
export {
  FeedbackContainer
};
