import { FC } from 'react' import { usePathname, useRouter } from 'expo-router' import { Pressable } from 'react-native' import { Text } from '../../../../../components/native/typographies' import { useTheme } from '../../../../../providers/native' import { createStyles } from './styles' import { DrawerItemProps } from './types' const DrawerItem: FC = ({ href, Icon, label }) => { const theme = useTheme() const router = useRouter() const pathname = usePathname() const isItemActive = pathname === href const styles = createStyles(theme, { isActive: isItemActive }) const handlePress = () => { router.push(href) } return ( {label} ) } export default DrawerItem