'use strict';

var isAnimationControls = require('./is-animation-controls.js');
var isVariantLabel = require('./is-variant-label.js');
var variantProps = require('./variant-props.js');

function isControllingVariants(props) {
    return (isAnimationControls.isAnimationControls(props.animate) ||
        variantProps.variantProps.some((name) => isVariantLabel.isVariantLabel(props[name])));
}
function isVariantNode(props) {
    return Boolean(isControllingVariants(props) || props.variants);
}

exports.isControllingVariants = isControllingVariants;
exports.isVariantNode = isVariantNode;
