Spaces:
Build error
Build error
File size: 351 Bytes
b59aa07 |
1 2 3 4 5 6 7 8 9 10 11 12 |
import { useLocation } from "react-router";
/**
* Hook to check if the current page is the Terms of Service acceptance page.
*
* @returns {boolean} True if the current page is the TOS acceptance page, false otherwise.
*/
export const useIsOnTosPage = (): boolean => {
const { pathname } = useLocation();
return pathname === "/accept-tos";
};
|