import APIClient
import Foundation

public struct CommentsSheetMap: Equatable {
    public var commentsCache: [String: CommentsSheet]

    public func threadForEntity(_ entityId: String, entityType: CommentEntity.CommentEntityType) -> CommentsSheet? {
        let cacheKey = "\(entityType.rawValue):\(entityId)"
        return commentsCache[cacheKey]
    }
}
