import { createContext , Dispatch , SetStateAction } from "react" ; type DroppingStatus = { [ mountPoint ] : boolean ; } ; interface ContextOfDroppingStatus { droppingStatus ? : DroppingStatus ; setDroppingStatus ? : Dispatch < SetStateAction < DroppingStatus > > ; } deprecated export const DroppingStatusContext = createContext < ContextOfDroppingStatus > ( { } ) ;