import { MenuContainer, MenuRow } from '@components/Menu' import { getVersionUpdate } from '@utils/slices/appSlice' import React from 'react' import { useTranslation } from 'react-i18next' import { Linking, Platform } from 'react-native' import { useSelector } from 'react-redux' const Update: React.FC = () => { const { t } = useTranslation('screenTabs') const versionUpdate = useSelector(getVersionUpdate) return versionUpdate ? ( { if (Platform.OS === 'ios') { Linking.openURL('itms-appss://itunes.apple.com/app/id1549772269') } else { Linking.openURL('https://tooot.app') } }} /> ) : null } export default Update