"use client"; import { createContext } from "react"; import type { EditingLease } from "./editing-lease"; import type { EdgeData } from "@/lib/canvas-v2"; const defaultEditing = { finish: undefined as undefined | (() => void), cancel: undefined as undefined | (() => void), begin: (_id?: string): boolean | void | EditingLease> => {}, patch: (_id: string, _data: EdgeData, _transient = false) => {}, active: new Set() }; export const EdgeEditing = createContext & Partial>>(defaultEditing);