@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
23 lines (22 loc) • 978 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = require("react");
const styles_1 = require("@mui/material/styles");
const material_1 = require("@mui/material");
const classnames_1 = tslib_1.__importDefault(require("classnames"));
const PREFIX = 'SCWidget';
const classes = {
root: `${PREFIX}-root`
};
const Root = (0, styles_1.styled)(material_1.Card, {
name: PREFIX,
slot: 'Root',
overridesResolver: (props, styles) => styles.root
})(({ theme }) => ({}));
const Widget = (props, ref) => {
const { className, onHeightChange, onStateChange } = props, rest = tslib_1.__rest(props, ["className", "onHeightChange", "onStateChange"]);
return (0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { ref: ref }));
};
exports.default = (0, react_1.forwardRef)(Widget);
;