'use client'; import * as React from 'react'; import type { SortableContextValue } from '../types'; const SortableContext = React.createContext(null); export function SortableProvider({ children, value, }: { children: React.ReactNode; value: SortableContextValue; }) { return ( {children} ); } export function useSortableContext() { const context = React.useContext(SortableContext); if (!context) { throw new Error( 'useSortableContext must be used within a SortableProvider' ); } return context; }