Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Python aicode-complexitycode-healthcode-intelligencecode-qualitydead-codedeveloper-toolsdocumentationgit-analyticsmcpopen-sourcepythonrefactoringstatic-analysistechnical-debt
"use client";
import type { DocPageVersion } from "@repowise-dev/types";
import { VersionHistory as VersionHistoryShell } from "@repowise-dev/ui/wiki/version-history";
import { usePageVersions } from "@/lib/hooks/use-page";
interface Props {
pageId: string;
currentVersion: number;
currentContent: string;
}
export function VersionHistoryWrapper({ pageId, currentVersion, currentContent }: Props) {
const { versions, isLoading } = usePageVersions(pageId);
return (
<VersionHistoryShell
versions={versions as DocPageVersion[]}
currentVersion={currentVersion}
currentContent={currentContent}
isLoading={isLoading}
/>
);
}