Start setting up Next js with the new app router

This commit is contained in:
Ben Grant 2023-05-19 23:59:44 +10:00
parent 49c6281b74
commit 2adecd13f7
147 changed files with 2637 additions and 3667 deletions

View file

@ -0,0 +1,14 @@
import { create } from 'zustand'
interface TWAStore {
/** Is the site running in a trusted web activity? */
isTWA: boolean | undefined
setIsTWA: (isTWA: boolean | undefined) => void
}
const useTWAStore = create<TWAStore>()(set => ({
isTWA: undefined,
setIsTWA: isTWA => set({ isTWA }),
}))
export default useTWAStore