Deletable nodes (#801)

Co-authored-by: Muhammed Salih Altun <muhammedsalihaltun@gmail.com>
This commit is contained in:
Kerem Yilmaz
2024-09-10 07:07:56 -07:00
committed by GitHub
parent b12f09c535
commit 0053736f8f
15 changed files with 423 additions and 190 deletions

View File

@@ -0,0 +1,9 @@
import { createContext } from "react";
type DeleteNodeCallback = (id: string) => void;
const DeleteNodeCallbackContext = createContext<DeleteNodeCallback | undefined>(
undefined,
);
export { DeleteNodeCallbackContext };