Skip to content

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

348 B
Raw Blame
import { emptyFn } from '@/lib/utils';
import { createContext } from 'react';

export interface HistoryContext {
    undo: () => void;
    redo: () => void;
    hasUndo: boolean;
    hasRedo: boolean;
}

export const historyContext = createContext<HistoryContext>({
    undo: emptyFn,
    redo: emptyFn,
    hasUndo: false,
    hasRedo: false,
});