"use client";
import { jsx, jsxs } from "react/jsx-runtime";
import { ActivitiesCard } from "./ActivitiesCard.js";
import { ActivityHistorySection } from "./ActivityHistorySection.js";
function ActivityLogTab({
  entityId,
  plannedActivities,
  onScheduleRequested,
  onAddActivity,
  onEditActivity,
  runGuardedMutation,
  refreshKey = 0,
  useCanonicalInteractions = false,
  entityCompanyName
}) {
  const handleAddNew = (kind) => {
    if (onAddActivity) onAddActivity(kind);
    else onScheduleRequested();
  };
  return /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
    /* @__PURE__ */ jsx(
      ActivitiesCard,
      {
        entityId,
        plannedActivities,
        refreshKey,
        onAddNew: handleAddNew,
        onEditActivity,
        entityCompanyName
      }
    ),
    /* @__PURE__ */ jsx(
      ActivityHistorySection,
      {
        entityId,
        useCanonicalInteractions,
        refreshKey,
        onEditActivity,
        runMutation: runGuardedMutation
      }
    )
  ] });
}
var ActivityLogTab_default = ActivityLogTab;
export {
  ActivityLogTab,
  ActivityLogTab_default as default
};
//# sourceMappingURL=ActivityLogTab.js.map
