10 lines
225 B
TypeScript
10 lines
225 B
TypeScript
import { createContext } from "react";
|
|
|
|
type DeleteNodeCallback = (id: string) => void;
|
|
|
|
const DeleteNodeCallbackContext = createContext<DeleteNodeCallback | undefined>(
|
|
undefined,
|
|
);
|
|
|
|
export { DeleteNodeCallbackContext };
|