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 { HabitsStatistics } from "@/presentation/react-native/components/HabitsStatistics"
|
||
|
import { useHabitsTracker } from "@/presentation/react/contexts/HabitsTracker"
|
||
|
|
||
|
const StatisticsPage: React.FC = () => {
|
||
|
const { habitsTracker } = useHabitsTracker()
|
||
|
|
||
|
return (
|
||
|
<SafeAreaView
|
||
|
style={[
|
||
|
{
|
||
|
flex: 1,
|
||
|
backgroundColor: "white",
|
||
|
},
|
||
|
]}
|
||
|
>
|
||
|
<HabitsStatistics habitsTracker={habitsTracker} />
|
||
|
</SafeAreaView>
|
||
|
)
|
||
|
}
|
||
|
|
||
|
export default StatisticsPage
|