"use client";
import { jsx } from "react/jsx-runtime";
import * as React from "react";
import { VersionHistoryAction } from "@open-mercato/ui/backend/version-history";
import { useT } from "@open-mercato/shared/lib/i18n/context";
const OUTLINE_ICON_BUTTON_CLASSES = "size-8 rounded-md border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50";
function ObjectHistoryButton({
  resourceKind,
  resourceId,
  resourceIdFallback,
  organizationId,
  includeRelated
}) {
  const t = useT();
  const config = React.useMemo(
    () => ({
      resourceKind,
      resourceId,
      resourceIdFallback,
      organizationId,
      includeRelated
    }),
    [resourceKind, resourceId, resourceIdFallback, organizationId, includeRelated]
  );
  return /* @__PURE__ */ jsx(
    VersionHistoryAction,
    {
      config,
      t,
      buttonClassName: OUTLINE_ICON_BUTTON_CLASSES
    }
  );
}
var ObjectHistoryButton_default = ObjectHistoryButton;
export {
  ObjectHistoryButton,
  ObjectHistoryButton_default as default
};
//# sourceMappingURL=ObjectHistoryButton.js.map
