ChannelDeck working prototype
This commit is contained in:
commit
54fe9f17bf
13 changed files with 241 additions and 0 deletions
20
components/DeckSidebar.tsx
Normal file
20
components/DeckSidebar.tsx
Normal file
|
@ -0,0 +1,20 @@
|
|||
import { useState } from "@webpack/common";
|
||||
import "./DeckSidebar.css";
|
||||
|
||||
import { cl } from "./util";
|
||||
|
||||
enum SidebarTabs {
|
||||
ADD_CHANNEL = "add_channel",
|
||||
DECKS = "decks",
|
||||
CONFIGURE = "configure"
|
||||
}
|
||||
|
||||
export default function DeckSidebar() {
|
||||
const [tab, setTab] = useState<SidebarTabs | null>(null);
|
||||
const toggleTab = (value) => setTab((current) => current === value ? null : value);
|
||||
return <div className={cl("sidebar")} data-tab={tab}>
|
||||
<div className={cl("sidebar-items")}>
|
||||
|
||||
</div>
|
||||
</div>;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue