import { Redirect, useLocalSearchParams } from "expo-router" import { Text } from "react-native-paper" import { SafeAreaView } from "react-native-safe-area-context" import { useHabitsTracker } from "@/presentation/react/contexts/HabitsTracker" const HabitPage: React.FC = () => { const { habitId } = useLocalSearchParams() const { habitsTracker } = useHabitsTracker() const habitHistory = habitsTracker.getHabitHistoryById(habitId as string) if (habitHistory == null) { return } return ( Habit Page {habitId} {habitHistory.habit.name} ) } export default HabitPage