UNPKG

@coveord/plasma-mantine

Version:

A Plasma flavoured Mantine theme

33 lines (32 loc) 1.36 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "CollectionAddButton", { enumerable: true, get: function() { return CollectionAddButton; } }); var _interop_require_default = require("@swc/helpers/_/_interop_require_default"); var _jsxruntime = require("react/jsx-runtime"); var _plasmareacticons = require("@coveord/plasma-react-icons"); var _core = require("@mantine/core"); var _Button = require("../Button/Button.js"); var _Collectionmodulecss = /*#__PURE__*/ _interop_require_default._(require("./Collection.module.css")); var CollectionAddButton = function CollectionAddButton(param) { var addLabel = param.addLabel, addDisabledTooltip = param.addDisabledTooltip, addAllowed = param.addAllowed, onAdd = param.onAdd; return /*#__PURE__*/ (0, _jsxruntime.jsx)(_core.Box, { className: _Collectionmodulecss.default.addButtonContainer, children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Button.Button.Quaternary, { leftSection: /*#__PURE__*/ (0, _jsxruntime.jsx)(_plasmareacticons.IconPlus, { size: 16 }), onClick: onAdd, disabled: !addAllowed, disabledTooltip: addDisabledTooltip, children: addLabel }) }); }; //# sourceMappingURL=CollectionAddButton.js.map