import { supportsFlags } from './flags.mjs';
import { memo } from '../../../../../../../motion-utils@12.36.0/node_modules/motion-utils/dist/es/memo.mjs';

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

export { memoSupports };
