import { IconGitCommit } from "@tabler/icons-react"; import type { GitLabMRCommit } from "@/lib/types/gitlab"; import { CollapsibleSection, formatTimeAgo } from "@/components/github/pr-shared"; export function MRCommitsSection({ commits }: { commits: GitLabMRCommit[] }) { return ( {commits.length === 0 && (

No commits

)} {commits.map((commit) => (

{commit.message}

{commit.author_name} ยท {formatTimeAgo(commit.author_date)}

{commit.sha.slice(0, 8)}
))}
); }