MCPcopy Create free account
hub / github.com/LevelUpWeb3/app / useCheckTheme

Function useCheckTheme

src/components/Header/useCheckTheme.tsx:4–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import { useMemo } from "react";
3
4const useCheckTheme = () => {
5 const pathname = usePathname();
6 const dark = useMemo(
7 () =>
8 ["/developer-nft/check-eligibility", "/developer-nft/mint"].includes(
9 pathname!,
10 ),
11 [pathname],
12 );
13
14 return dark;
15};
16
17export default useCheckTheme;

Callers 2

DesktopHeaderFunction · 0.85
MobileHeaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected