UNPKG

epn-ui

Version:

Дизайн система кабинета ВМ

13 lines (10 loc) 1.03 kB
import { __rest, __assign } from '../../_virtual/_tslib.js'; import React from 'react'; import clsx from 'clsx'; import Button$1 from 'antd/lib/button'; var BaseButton = function (_a) { var id = _a.id, className = _a.className, style = _a.style, type = _a.type, shape = _a.shape, size = _a.size, htmlType = _a.htmlType, disabled = _a.disabled, loading = _a.loading, href = _a.href, target = _a.target, block = _a.block, icon = _a.icon, children = _a.children, onClick = _a.onClick, rest = __rest(_a, ["id", "className", "style", "type", "shape", "size", "htmlType", "disabled", "loading", "href", "target", "block", "icon", "children", "onClick"]); return (React.createElement(Button$1, __assign({ type: type, shape: shape, icon: icon, id: id, style: style, className: clsx('epn-btn', className), size: size, htmlType: htmlType, disabled: disabled, block: block, href: href, target: target, loading: loading, onClick: onClick }, rest), children)); }; var Button = BaseButton; export { BaseButton, Button as default };