gitscope
← marzneshin / v0.5.1 / dashboard/src/components/ui/sortable/context.ts
https://dev.kronoz.win/r/marzneshin.git
dashboard/src/components/ui/sortable/context.ts · TypeScript
Blame Raw
 1import type {
 2    DraggableSyntheticListeners,
 3} from "@dnd-kit/core"
 4import React from "react";
 5
 6interface SortableItemContextProps {
 7    attributes: React.HTMLAttributes<HTMLElement>
 8    listeners: DraggableSyntheticListeners | undefined
 9}
10
11export const SortableItemContext = React.createContext<SortableItemContextProps>({
12    attributes: {},
13    listeners: undefined,
14})