"use client"; import type { ReactNode } from "react"; import { toRelativePath } from "@/lib/utils"; import { ExternalVcsFileLink, useExternalVcsFileStatus, } from "@/components/editors/external-vcs-file-link"; type FileViewerHeaderProps = { path: string; worktreePath?: string; actions?: ReactNode; }; export function FileViewerHeader({ path, worktreePath, actions }: FileViewerHeaderProps) { const label = toRelativePath(path, worktreePath); if (!actions) { return (