/** Git tab for the workspace detail page. */ import { useWorkspaceGit } from "../../../hooks/use-workspace-git"; interface WorkspaceGitPanelProps { workspaceId: string; } export function WorkspaceGitPanel({ workspaceId }: WorkspaceGitPanelProps) { const { history, branches, currentBranch, checkout, loading, error } = useWorkspaceGit(workspaceId); return (
{loading &&

Loading history...

} {error &&

{error}

}
{history.map((commit) => (
{commit.hash.slice(0, 7)} {commit.message} {commit.author} {commit.date}
))}
); }