"use client";
import { jsx, jsxs } from "react/jsx-runtime";
import { useRouter } from "next/navigation";
import { MessageComposer } from "@open-mercato/ui/backend/messages";
import { InjectionSpot } from "@open-mercato/ui/backend/injection/InjectionSpot";
function ComposeMessagePageClient() {
  const router = useRouter();
  return /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
    /* @__PURE__ */ jsx(
      InjectionSpot,
      {
        spotId: "crud-form:messages:message:fields",
        context: { form: "compose" },
        data: {}
      }
    ),
    /* @__PURE__ */ jsx(
      MessageComposer,
      {
        inline: true,
        variant: "compose",
        onCancel: () => {
          router.push("/backend/messages");
        },
        onSuccess: (result) => {
          router.push("/backend/messages");
        }
      }
    )
  ] });
}
export {
  ComposeMessagePageClient
};
//# sourceMappingURL=ComposeMessagePageClient.js.map
