import { Mode } from "../mode"; import { Commit } from "../commit"; import { CompactGraphRows } from "./compact"; import { RegularGraphRows } from "./regular"; export { createGraphRows, RegularGraphRows as GraphRows }; function createGraphRows( mode: Mode | undefined, commits: Array>, ) { return mode === Mode.Compact ? new CompactGraphRows(commits) : new RegularGraphRows(commits); }