repo_description: The official Semantic-UI-React integration
repo_topics: component-library components frontend-components frontend-framework javascript-libraries javascript-library js-library react react-components react-library semantic-ui
code: /**
   * Normalizes the duration of a transition.
   * @param {number|object} duration The value to normalize.
   * @param {'hide'|'show'} type The type of transition.
   * @returns {number}
   */
  export default (duration, type) =>
    typeof duration === 'number' || typeof duration === 'string' ? duration : duration[type]
  