@100mslive/react-native-room-kit
Version:
100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.
38 lines • 1.16 kB
JavaScript
import * as React from 'react';
import { View, StyleSheet, Text } from 'react-native';
import { useHMSRoomStyleSheet } from '../../hooks-util';
export const _PeerBlockedFromChat = ({
style
}) => {
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
container: {
backgroundColor: theme.palette.surface_default
},
subtitle: {
color: theme.palette.on_surface_medium,
fontFamily: `${typography.font_family}-Regular`
}
}));
return /*#__PURE__*/React.createElement(View, {
style: [styles.container, hmsRoomStyles.container, style]
}, /*#__PURE__*/React.createElement(Text, {
style: [styles.subtitle, hmsRoomStyles.subtitle]
}, "You've been blocked from sending messages"));
};
const styles = StyleSheet.create({
container: {
paddingVertical: 8,
paddingHorizontal: 16,
borderRadius: 8,
alignItems: 'center',
justifyContent: 'center'
},
subtitle: {
fontSize: 14,
lineHeight: 20,
letterSpacing: 0.25,
textAlign: 'center'
}
});
export const PeerBlockedFromChat = /*#__PURE__*/React.memo(_PeerBlockedFromChat);
//# sourceMappingURL=PeerBlockedFromChat.js.map