'use strict';

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

var _tslib = require('../../_virtual/_tslib.js');
var React = require('react');
var styles = require('./styles.js');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

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

const UploaderContainerWrapper = (_a) => {
    var { width, label, optionalText, assistText } = _a, props = _tslib.__rest(_a, ["width", "label", "optionalText", "assistText"]);
    return (React__default['default'].createElement(styles.UploaderContainer, { "data-testid": props['data-testid'], "data-trackid": props['data-trackid'], width: width },
        label && (React__default['default'].createElement(styles.Header, null,
            React__default['default'].createElement("span", null, label),
            optionalText && React__default['default'].createElement("span", null, optionalText))),
        props.children,
        assistText && React__default['default'].createElement(styles.AssistText, null, assistText)));
};

exports.UploaderContainerWrapper = UploaderContainerWrapper;
