import { HeaderRight } from '@components/Header' import { MenuContainer, MenuRow } from '@components/Menu' import { TabMeStackScreenProps } from '@utils/navigation/navigators' import { useListsQuery } from '@utils/queryHooks/lists' import React, { useEffect } from 'react' import { useTranslation } from 'react-i18next' const TabMeListList: React.FC> = ({ navigation }) => { const { data } = useListsQuery({}) const { t } = useTranslation() useEffect(() => { navigation.setOptions({ headerRight: () => ( navigation.navigate('Tab-Me-List-Edit', { type: 'add' })} /> ) }) }, []) return ( {data?.map((list, index) => ( navigation.navigate('Tab-Me-List', { list })} /> ))} ) } export default TabMeListList