import React from 'react'; import { StyleSheet, Text } from 'react-native'; import { useNavigation } from '@react-navigation/native'; import { strings } from '../../../../../../locales/i18n'; import Alert, { AlertType } from '../../../../Base/Alert'; import { useAppThemeFromContext, mockTheme } from '../../../../../util/theme'; import { CHAINLIST_URL } from '../../../../../constants/urls'; const createStyles = (colors: any) => StyleSheet.create({ wrapper: { backgroundColor: colors.background.default, flex: 1, }, container: { marginHorizontal: 10, marginTop: 20, paddingRight: 0 }, emptyDescriptionText: { color: colors.text.default }, link: { color: colors.primary.default }, }); interface Props { goToCustomNetwork: () => void; } const EmptyPopularList = ({ goToCustomNetwork }: Props) => { const { colors } = useAppThemeFromContext() || mockTheme; const styles = createStyles(colors); const navigation = useNavigation(); const goToBrowserTab = () => { navigation.navigate('BrowserTabHome', { screen: 'BrowserView', params: { newTabUrl: CHAINLIST_URL, timestamp: Date.now(), }, }); }; return ( <> {`${strings( 'networks.empty_popular_networks', )} `} {`${strings( 'networks.add_other_network_here', )} `} {`${strings( 'networks.you_can', )} `} {strings('networks.add_network')} ); }; export default EmptyPopularList;