import { Show } from "solid-js"; import type { FileChangesInfo } from "../types"; interface FileChangesSummaryProps { fileChanges: FileChangesInfo | null; } export function FileChangesSummary(props: FileChangesSummaryProps) { return ( {props.fileChanges!.fileCount} file{props.fileChanges!.fileCount !== 1 ? 's' : ''} changed{' '} 0}> +{props.fileChanges!.additions}{' '} 0}> -{props.fileChanges!.deletions} ); }