UNPKG

chowa

Version:

UI component library based on React

21 lines (20 loc) 828 B
/** * @license chowa v1.1.3 * * Copyright (c) Chowa Techonlogies Co.,Ltd.(http://www.chowa.cn). * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const React = require("react"); const button_1 = require("../button"); const icon_1 = require("../icon"); const i18n_1 = require("../i18n"); const UploadSelect = ({ disabled, triggerUpload }) => { return (React.createElement(button_1.default, { disabled: disabled, onClick: triggerUpload, type: 'primary' }, React.createElement(icon_1.default, { type: 'upload', size: 18 }), React.createElement(i18n_1.I18nReceiver, { module: 'Upload' }, (i18n) => i18n.select))); }; exports.default = UploadSelect;