import React, { useContext } from 'react'; import { Box, Divider, Text, createStyleSheet, useUIKitTheme } from '@sendbird/uikit-react-native-foundation'; import { getOpenChannelTitle } from '@sendbird/uikit-utils'; import ChannelCover from '../../../components/ChannelCover'; import { useLocalization } from '../../../hooks/useContext'; import { OpenChannelSettingsContexts } from '../module/moduleContext'; import type { OpenChannelSettingsProps } from '../types'; const OpenChannelSettingsInfo = (_: OpenChannelSettingsProps['Info']) => { const { channel } = useContext(OpenChannelSettingsContexts.Fragment); const { STRINGS } = useLocalization(); const { colors } = useUIKitTheme(); return ( {getOpenChannelTitle(channel) || ' '} {STRINGS.OPEN_CHANNEL_SETTINGS.INFO_URL} {channel.url} ); }; const styles = createStyleSheet({ avatarContainer: { marginBottom: 12, }, infoUrl: { marginBottom: 4, }, }); export default OpenChannelSettingsInfo;