diff --git a/src/components/Header.tsx b/src/components/Header.tsx index ad24a94..691e47a 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -1,4 +1,7 @@ import { Link, useRouter } from "@tanstack/react-router"; +import { useAtom } from "jotai"; + +import { isAtTopAtom } from "~/utils/atoms"; export function Header({ backButtonCallback, @@ -8,9 +11,10 @@ export function Header({ title?: string; }) { const router = useRouter(); + const [isAtTop] = useAtom(isAtTopAtom); //const what = router.history. return ( -