import { SafeAreaView } from "react-native-safe-area-context" import { ActivityIndicator, Button, Text } from "react-native-paper" import { HabitsHistory } from "@/presentation/react/components/HabitsHistory/HabitsHistory" import { useHabitsTracker } from "@/presentation/react/contexts/HabitsTracker" import { useAuthentication } from "@/presentation/react/contexts/Authentication" const HabitsPage: React.FC = () => { const { habitsTracker, retrieveHabitsTracker, habitsTrackerPresenter } = useHabitsTracker() const { user } = useAuthentication() return ( {retrieveHabitsTracker.state === "loading" ? ( ) : retrieveHabitsTracker.state === "error" ? ( <> Error: There was an issue while retrieving habits, please try again. ) : ( )} ) } export default HabitsPage