 import MatrixSDK
 import Reusable
 import DGCollectionViewLeftAlignFlowLayout
+import UIKit
+
+/// BubbleReactionsView items alignement
+enum BubbleReactionsViewAlignement {
+    case left
+    case right
+}
 
 @objcMembers
 final class BubbleReactionsView: UIView, NibOwnerLoadable {

        self.collectionView.isScrollEnabled = false
        self.collectionView.delegate = self
        self.collectionView.dataSource = self
        self.collectionView.collectionViewLayout = DGCollectionViewLeftAlignFlowLayout()
        
        if let collectionViewFlowLayout = self.collectionView.collectionViewLayout as? UICollectionViewFlowLayout {
            collectionViewFlowLayout.estimatedItemSize = UICollectionViewFlowLayout.automaticSize

            collectionViewFlowLayout.minimumLineSpacing = Constants.minimumLineSpacing
        }
        
        self.collectionView.reloadData()
        self.collectionView.collectionViewLayout.invalidateLayout()
    }
    
    private func collectionViewLayout(for alignement: BubbleReactionsViewAlignement) -> UICollectionViewLayout {
        
        let collectionViewLayout: UICollectionViewLayout
        
        switch alignment {
        case .left:
            collectionViewLayout = DGCollectionViewLeftAlignFlowLayout()
        case .right:
            collectionViewLayout = CollectionViewRightAlignFlowLayout()
        }
        
        return collectionViewLayout
    }
    
    private func setupLongPressGestureRecognizer() {
