"use client"; import { IconFileOff } from "@tabler/icons-react"; import { toRelativePath } from "@/lib/utils"; type FileBinaryViewerProps = { path: string; worktreePath?: string; }; export function FileBinaryViewer({ path, worktreePath }: FileBinaryViewerProps) { return (
{toRelativePath(path, worktreePath)}
Cannot preview this file
Binary file
); }