import { Platform, StyleSheet, View } from 'react-native' import { useSafeAreaInsets } from 'react-native-safe-area-context' import { TabBarItemWrapper } from './TabBarItemWrapper' import { bottomTabs, getTabColor } from '../navigation-config' import { Column, Icon, Text } from '@/design-system' import { useTheme, useTranslation } from '@/hooks' export function BottomBar({ visible }: { visible: boolean }) { const { colors } = useTheme() const { t } = useTranslation() const { bottom } = useSafeAreaInsets() if (!visible) { return null } return ( {bottomTabs.map((tab, i) => ( {({ focused, pressed, hovered }) => ( {!!tab.displayedNameTx && ( {t(tab.displayedNameTx)} )} )} ))} ) } const jsStyles = StyleSheet.create({ nav: { alignItems: 'center', borderTopWidth: 1, flexDirection: 'row', height: 56, justifyContent: 'space-around', paddingHorizontal: 16, }, tabIconPressed: { opacity: 0.8, }, })