()
| 2 | import { useMemo } from "react"; |
| 3 | |
| 4 | const 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 | |
| 17 | export default useCheckTheme; |
no outgoing calls
no test coverage detected