'use strict';

var flags = require('./flags.js');
var memo = require('../../../../../../../motion-utils@12.36.0/node_modules/motion-utils/dist/es/memo.js');

function memoSupports(callback, supportsFlag) {
    const memoized = memo.memo(callback);
    return () => flags.supportsFlags[supportsFlag] ?? memoized();
}

exports.memoSupports = memoSupports;
