constmakeGitHistoryTable=({ file })=>{constlog=file.log;// If we don't have a revision log for the file,// don't render the git history table at allif(!file.log.length){returnnull;}consttableRows=log.map((entry)=>{return["tr",["td",{class: "commit-date-tr"},entry.date],["td",{class: "commit-link-tr"},entry.shortHash],];});consttable=["div",{class: "git-history-table-container"},["span",{class: "git-history-table-title"},"Revisions"],["table",{class: "git-history-table"},["thead",["tr",["th","Date"],["th","Hash"]]],["tbody", ...tableRows],],];returntable;};constGitHistoryTable=({ file })=>({dependsOn: [],body: makeGitHistoryTable({ file }),});exportdefaultGitHistoryTable;