mirror of
https://github.com/theoludwig/p61-project.git
synced 2024-07-17 07:00:12 +02:00
24 lines
572 B
TypeScript
24 lines
572 B
TypeScript
import { SafeAreaView } from "react-native-safe-area-context"
|
|
|
|
import { HabitsHistory } from "@/presentation/react/components/HabitsHistory/HabitsHistory"
|
|
import { useHabitsTracker } from "@/presentation/react/contexts/HabitsTracker"
|
|
|
|
const HabitsPage: React.FC = () => {
|
|
const { habitsTracker } = useHabitsTracker()
|
|
|
|
return (
|
|
<SafeAreaView
|
|
style={[
|
|
{
|
|
flex: 1,
|
|
alignItems: "center",
|
|
},
|
|
]}
|
|
>
|
|
<HabitsHistory habitsHistory={habitsTracker.habitsHistory} />
|
|
</SafeAreaView>
|
|
)
|
|
}
|
|
|
|
export default HabitsPage
|