mirror of
https://github.com/wasp-lang/open-saas.git
synced 2025-11-20 11:36:42 +01:00
11 lines
241 B
TypeScript
11 lines
241 B
TypeScript
import { useMemo } from "react";
|
|
import { useLocation } from "react-router-dom";
|
|
|
|
export const useIsLandingPage = () => {
|
|
const location = useLocation();
|
|
|
|
return useMemo(() => {
|
|
return location.pathname === "/";
|
|
}, [location]);
|
|
};
|