1
1
mirror of https://github.com/theoludwig/p61-project.git synced 2024-07-17 07:00:12 +02:00
p61-project/app/application/habits/new.tsx

15 lines
374 B
TypeScript
Raw Normal View History

2024-04-04 12:31:56 +02:00
import { HabitCreateForm } from "@/presentation/react/components/HabitCreateForm/HabitCreateForm"
import { useAuthentication } from "@/presentation/react/contexts/Authentication"
const NewHabitPage: React.FC = () => {
2024-04-04 12:31:56 +02:00
const { user } = useAuthentication()
2024-04-11 13:07:17 +02:00
if (user == null) {
2024-04-04 12:31:56 +02:00
return null
}
return <HabitCreateForm user={user} />
}
export default NewHabitPage