import type { DraggableSyntheticListeners } from "@dnd-kit/core";
import { createContext } from "react";

interface Context {
    attributes: Record<string, any>;
    listeners: DraggableSyntheticListeners;
    ref: (node: HTMLElement | null) => void;
}

const SortableItemContext = createContext<Context>({
    attributes: {},
    listeners: undefined,
    ref() {},
});

export default SortableItemContext;
