repo_description: Beautiful and accessible drag and drop for lists with React
repo_topics: dnd drag drag-and-drop react reordering sortable
code: // @flow
  import type { DragImpact, DraggableLocation, Combine } from '../types';
  
  export function tryGetDestination(impact: DragImpact): ?DraggableLocation {
    if (impact.at && impact.at.type === 'REORDER') {
      return impact.at.destination;
    }
    return null;
  }
  
  export function tryGetCombine(impact: DragImpact): ?Combine {
    if (impact.at && impact.at.type === 'COMBINE') {
      return impact.at.combine;
    }
    return null;
  }
  