// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import PropTypes from 'prop-types'; import React, {PureComponent} from 'react'; import {View, Platform} from 'react-native'; import CompassIcon from '@components/compass_icon'; import TouchableWithFeedback from '@components/touchable_with_feedback'; import {makeStyleSheetFromTheme, changeOpacity} from '@utils/theme'; export default class UploadRemove extends PureComponent { static propTypes = { channelId: PropTypes.string, clientId: PropTypes.string, onPress: PropTypes.func.isRequired, rootId: PropTypes.string, theme: PropTypes.object.isRequired, }; handleOnPress = () => { const {channelId, clientId, onPress, rootId} = this.props; onPress(clientId, channelId, rootId); }; render() { const {theme} = this.props; const style = getStyleSheet(theme); return ( ); } } const getStyleSheet = makeStyleSheetFromTheme((theme) => { return { tappableContainer: { position: 'absolute', elevation: 11, top: -7, right: -8, width: 24, height: 24, }, removeButton: { borderRadius: 12, alignSelf: 'center', marginTop: Platform.select({ ios: 5.4, android: 4.75, }), backgroundColor: theme.centerChannelBg, width: 24, height: 25, }, }; });