ChannelDeck working prototype

This commit is contained in:
Sqaaakoi 2025-02-26 03:11:08 +13:00
commit 54fe9f17bf
No known key found for this signature in database
13 changed files with 241 additions and 0 deletions

10
components/util.ts Normal file
View file

@ -0,0 +1,10 @@
import { classNameFactory } from "@api/Styles";
import { ChannelDeck } from "../ChannelDeckStore";
import { React } from "@webpack/common";
import { proxyLazy } from "@utils/index";
export const cl = classNameFactory("vc-channelDeck-");
export const DeckContext = proxyLazy(() => React.createContext<ChannelDeck | undefined>(undefined));
export const useDeck = () => React.useContext(DeckContext);