text: import { createPropType } from '../utils'
  
  const range = (min, max) => {
    return createPropType((props, propName, componentName) => {
      const value = props[propName]
  
      if (value < min || value > max) {
        return new Error(`Invalid prop ${propName} of ${componentName}, should between ${min} and ${max}.`)
      }
    })
  }
  export default range
  