add diff mode (#614)

* initial diff viewer

* test

* test

* name change

* new table show

* diff viewer
This commit is contained in:
Guy Ben-Aharon
2025-03-13 11:12:11 +02:00
committed by GitHub
parent bd67ccfbcf
commit 52d2ea596c
14 changed files with 1276 additions and 46 deletions

View File

@@ -0,0 +1,10 @@
import { useContext } from 'react';
import { diffContext } from './diff-context';
export const useDiff = () => {
const context = useContext(diffContext);
if (context === undefined) {
throw new Error('useDiff must be used within an DiffProvider');
}
return context;
};