@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
19 lines (18 loc) • 714 B
JavaScript
import { __rest } from "tslib";
import { jsx as _jsx } from "react/jsx-runtime";
import { IconButton } from '@mui/material';
import Icon from '@mui/material/Icon';
import { PREFIX } from './constants';
import { styled } from '@mui/material/styles';
import classNames from 'classnames';
const classes = {
triggerRoot: `${PREFIX}-trigger-root`
};
const Root = styled(IconButton, {
name: PREFIX,
slot: 'TriggerRoot'
})(() => ({}));
export default (_a) => {
var { className } = _a, rest = __rest(_a, ["className"]);
return (_jsx(Root, Object.assign({ className: classNames(className, classes.triggerRoot) }, rest, { "aria-label": "add link" }, { children: _jsx(Icon, { children: "link" }) })));
};