@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.
28 lines • 959 B
JavaScript
import * as React from 'react';
import { StyleSheet } from 'react-native';
import { Footer } from './Footer';
import { AnimatedHLSFooter } from './AnimatedHLSFooter';
import { HMSOverlayChatView } from './HMSOverlayChatView';
import { useShowChatAndParticipants } from '../hooks-util';
import { HMSNotifications } from './HMSNotifications';
export const HLSFooter = ({
offset
}) => {
const {
overlayChatVisible
} = useShowChatAndParticipants();
return /*#__PURE__*/React.createElement(AnimatedHLSFooter, {
offset: offset,
style: styles.animatedContainer
}, overlayChatVisible ? /*#__PURE__*/React.createElement(HMSOverlayChatView, {
offset: offset
}) : null, /*#__PURE__*/React.createElement(HMSNotifications, null), /*#__PURE__*/React.createElement(Footer, null));
};
const styles = StyleSheet.create({
animatedContainer: {
position: 'absolute',
bottom: 0,
width: '100%'
}
});
//# sourceMappingURL=HLSFooter.js.map