feat: 💨

This commit is contained in:
codytseng 2026-01-06 00:00:51 +08:00
parent 695f2fe017
commit ed843f637a
8 changed files with 198 additions and 197 deletions

View file

@ -0,0 +1,8 @@
import { createContext, useContext } from 'react'
export const PageActiveContext = createContext<boolean | null>(null)
export function usePageActive() {
const ctx = useContext(PageActiveContext)
return ctx ?? false
}