ChannelDeck working prototype
This commit is contained in:
commit
54fe9f17bf
13 changed files with 241 additions and 0 deletions
10
components/util.ts
Normal file
10
components/util.ts
Normal 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);
|
Loading…
Add table
Add a link
Reference in a new issue