@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
39 lines (32 loc) • 1.74 kB
JavaScript
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 styles_1 = require("@mui/material/styles");
const Skeleton_1 = tslib_1.__importDefault(require("@mui/material/Skeleton"));
const BaseItem_1 = tslib_1.__importDefault(require("../../../shared/BaseItem"));
const PREFIX = 'SCPollSnippetSkeleton';
const classes = {
root: `${PREFIX}-root`
};
const Root = (0, styles_1.styled)(BaseItem_1.default)(({ theme }) => ({}));
/**
* > API documentation for the Community-JS Poll Snippet Skeleton component. Learn about the available props and the CSS API.
#### Import
```jsx
import {PollSnippetSkeleton} from '@selfcommunity/react-ui';
```
#### Component Name
The name `SCPollSnippetSkeleton` can be used when providing style overrides in the theme.
#### CSS
|Rule Name|Global class|Description|
|---|---|---|
|root|.SCPollSnippetSkeleton-root|Styles applied to the root element.|
*
*/
function PollSnippetSkeleton(props) {
const theme = (0, material_1.useTheme)();
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, props, { image: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", variant: "circular", width: theme.selfcommunity.user.avatar.sizeMedium, height: theme.selfcommunity.user.avatar.sizeMedium }), primary: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 10, width: 120, style: { marginBottom: 10 } }), secondary: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 10, width: 70, style: { marginBottom: 10 } }) })));
}
exports.default = PollSnippetSkeleton;
;