#pragma once

#include <cstdint>

typedef enum class LayoutAnimationType : std::uint8_t {
  ENTERING = 1,
  EXITING = 2,
  LAYOUT = 3,
  SHARED_ELEMENT_TRANSITION = 4,
  SHARED_ELEMENT_TRANSITION_NATIVE_ID = 5,
  SHARED_ELEMENT_TRANSITION_PROGRESS = 6,
  SHARED_ELEMENT_TRANSITION_PROGRESS_NATIVE_ID = 7,
} LayoutAnimationType;

inline bool isSharedTransition(const LayoutAnimationType type) {
  return type == LayoutAnimationType::SHARED_ELEMENT_TRANSITION ||
      type == LayoutAnimationType::SHARED_ELEMENT_TRANSITION_PROGRESS;
}

inline bool needsFinalFrameReconciliation(const LayoutAnimationType type) {
  return !isSharedTransition(type);
}
