local ItemRecords = {}

function ItemRecords.ResolveItemSpellID(getItemSpell, itemLink)
    if type(getItemSpell) ~= "function" or not itemLink then
        return nil
    end
    local _, spellID = getItemSpell(itemLink)
    if not spellID then
        return nil
    end
    return spellID
end

_G.CritMaticItemRecords = ItemRecords

return ItemRecords
