Skip to content

Database diagrams editor that allows you to visualize and design your DB with a single query.

293 B
Raw Blame
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;
};