feat: ship a web app (#218)
* feat(orion): add endpoint for link metadata * refactor: cleanup comments * wip: plumbing for building a web app * setup deployment materials for web app * fix(web): favicon
This commit was merged in pull request #218.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { create } from "zustand";
|
||||
import type { AutoplayPayload } from "@/lib/autoplay-ipc";
|
||||
|
||||
interface AutoplayPayloadState {
|
||||
payload: AutoplayPayload | null;
|
||||
pendingNav: { networkId: string; streamId: string; nonce: number } | null;
|
||||
setPayload: (payload: AutoplayPayload | null) => void;
|
||||
setPendingNav: (d: { networkId: string; streamId: string } | null) => void;
|
||||
}
|
||||
|
||||
export const useAutoplayPayloadStore = create<AutoplayPayloadState>((set) => ({
|
||||
payload: null,
|
||||
pendingNav: null,
|
||||
setPayload: (payload) => set({ payload }),
|
||||
setPendingNav: (d) =>
|
||||
set({ pendingNav: d ? { ...d, nonce: Date.now() } : null }),
|
||||
}));
|
||||
Reference in New Issue
Block a user