import React from 'react' import {StyleSheet, TouchableOpacity, View} from 'react-native' import {observer} from 'mobx-react-lite' import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' import {useStores} from '../../../state' import * as models from '../../../state/models/shell-ui' import * as ProfileImageLightbox from './ProfileImage' export const Lightbox = observer(function Lightbox() { const store = useStores() const onClose = () => { store.shell.closeLightbox() } if (!store.shell.isLightboxActive) { return } let element if (store.shell.activeLightbox?.name === 'profile-image') { element = ( ) } else { return } return ( <> {element} ) }) const styles = StyleSheet.create({ bg: { position: 'absolute', top: 0, left: 0, bottom: 0, right: 0, backgroundColor: '#000', opacity: 0.9, }, xIcon: { position: 'absolute', top: 30, right: 30, }, container: { position: 'absolute', }, })