UNPKG

@selfcommunity/react-ui

Version:

React UI Components to integrate a Community created with SelfCommunity Platform.

21 lines (20 loc) 991 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const jsx_runtime_1 = require("react/jsx-runtime"); const material_1 = require("@mui/material"); const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon")); const constants_1 = require("./constants"); const styles_1 = require("@mui/material/styles"); const classnames_1 = tslib_1.__importDefault(require("classnames")); const classes = { triggerRoot: `${constants_1.PREFIX}-trigger-root` }; const Root = (0, styles_1.styled)(material_1.IconButton, { name: constants_1.PREFIX, slot: 'TriggerRoot' })(() => ({})); exports.default = (_a) => { var { className } = _a, rest = tslib_1.__rest(_a, ["className"]); return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(className, classes.triggerRoot) }, rest, { "aria-label": "add link" }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "link" }) }))); };