UNPKG

wix-style-react

Version:
23 lines (19 loc) 640 B
import { isClassExists } from '../../test/utils'; var getAttribute = function getAttribute(element, attribute) { return element.getAttribute(attribute); }; var buttonLayoutDriverFactory = function buttonLayoutDriverFactory(_ref) { var element = _ref.element; return { exists: function exists() { return !!element; }, doesComponentHasClass: function doesComponentHasClass(className) { return isClassExists(element, className); }, getComponentAttribute: function getComponentAttribute(attribute) { return getAttribute(element, attribute); } }; }; export default buttonLayoutDriverFactory;