@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
35 lines (34 loc) • 1.19 kB
JavaScript
import { __rest } from "tslib";
import { jsx as _jsx } from "react/jsx-runtime";
import { styled } from '@mui/material/styles';
import { useThemeProps } from '@mui/system';
import { Box } from '@mui/material';
import classNames from 'classnames';
import { FormattedMessage } from 'react-intl';
const PREFIX = 'SCNoParticipants';
const classes = {
root: `${PREFIX}-root`
};
const Root = styled(Box, {
name: PREFIX,
slot: 'Root',
overridesResolver: (props, styles) => styles.root
})(({ theme }) => ({
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
backgroundColor: '#1e1e1e',
transition: 'opacity .2sease-in-out',
pointerEvents: 'none',
borderRadius: 7
}));
export default function NoParticipants(inProps) {
// PROPS
const props = useThemeProps({
props: inProps,
name: PREFIX
});
const { className } = props, rest = __rest(props, ["className"]);
// RENDER
return (_jsx(Root, Object.assign({ className: classNames(className, classes.root) }, rest, { children: _jsx(FormattedMessage, { id: "ui.liveStreamRoom.noParticipants", defaultMessage: "ui.liveStreamRoom.noParticipants" }) })));
}