// Generated by ReScript, PLEASE EDIT WITH CARE
'use strict';

var Curry = require("bs-platform/lib/js/curry.js");
var Maybe$OptolithClient = require("../../Data/Maybe.bs.js");
var IntMap$OptolithClient = require("../../Data/IntMap.bs.js");

function hasFrequencyRating(currentEntryRating, ratingMap, id) {
  return Maybe$OptolithClient.Foldable.elem(currentEntryRating, Curry._2(IntMap$OptolithClient.lookup, id, ratingMap));
}

function isCommon(param, param$1) {
  return hasFrequencyRating(/* Common */0, param, param$1);
}

function isUncommon(param, param$1) {
  return hasFrequencyRating(/* Uncommon */1, param, param$1);
}

exports.hasFrequencyRating = hasFrequencyRating;
exports.isCommon = isCommon;
exports.isUncommon = isUncommon;
/* IntMap-OptolithClient Not a pure module */
