'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var React = require('react');

function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }

var React__default = /*#__PURE__*/_interopDefault(React);

/* eslint-disable @typescript-eslint/ban-types */
function setDefaultClass(Component, defaultClass) {
    const Comp = React.forwardRef((props, ref) => {
        return (React__default["default"].createElement(Component, Object.assign({}, props, { 
            // @ts-ignore
            className: `${defaultClass} ${props.className || ''}`, ref: ref })));
    });
    // @ts-ignore
    Comp.classSelector = `.${defaultClass}`;
    return Comp;
}

exports.setDefaultClass = setDefaultClass;
