| 1 | import { FileDiffs } from "@/components/diffs/file-diffs"; |
| 2 | |
| 3 | import type { DiffViewProps |
| 4 | |
| 5 | export function DiffView({ |
| 6 | const additions = |
| 7 | const deletions = |
| 8 | |
| 9 | return ( |
| 10 | <div className="flex flex-col gap-4 |
| 11 | <div className="flex items-center gap-3 rounded-lg border px-4 py-2.5 text-sm |
| 12 | <span className="font-medium |
| 13 | {files.length} changed file{ |
| 14 | </span> |
| 15 | <span className="font-mono text-xs tabular-nums |
| 16 | <span className="text-emerald-500 |
| 17 | <span className="text-red-500 |
| 18 | </span> |
| 19 | <span className="ml-auto font-mono text-xs text-muted-foreground |
| 20 | {from.slice(0 |
| 21 | </span> |
| 22 | </div> |
| 23 | |
| 24 | {files.length === |
| 25 | <p className="rounded-lg border border-dashed py-16 text-center text-sm text-muted-foreground |
| 26 | This branch changes nothing against the base. |
| 27 | </p> |
| 28 | ) : ( |
| 29 | <FileDiffs patchUrl={ |
| 30 | )} |
| 31 | </div> |
| 32 | ); |
| 33 | } |