Start setting up Next js with the new app router
This commit is contained in:
parent
49c6281b74
commit
2adecd13f7
147 changed files with 2637 additions and 3667 deletions
14
frontend/src/stores/twaStore.ts
Normal file
14
frontend/src/stores/twaStore.ts
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue