import { computed } from 'vue';
export default function useRange(range) {
  return computed(() => {
    if (range.value === true || !range.value) {
      return [!!range.value, false, false, 0, undefined];
    }
    const {
      editable,
      draggableTrack,
      minCount,
      maxCount
    } = range.value;
    return [true, editable, !editable && draggableTrack, minCount || 0, maxCount];
  });
}