'use strict';

var resolveVariants = require('./resolve-variants.js');

function resolveVariant(visualElement, definition, custom) {
    const props = visualElement.getProps();
    return resolveVariants.resolveVariantFromProps(props, definition, custom !== undefined ? custom : props.custom, visualElement);
}

exports.resolveVariant = resolveVariant;
