This repository has been archived on 2024-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
p61-project/app/application/habits/new.tsx

15 lines
375 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()
if (user === null) {
return null
}
return <HabitCreateForm user={user} />
}
export default NewHabitPage