import { Devs } from "@utils/constants";
import definePlugin from "@utils/types";
import showUnsupportedMessage from "./unsupportedMessage";
import { ChannelDeckStore } from "./ChannelDeckStore";
import { contextMenus } from "./components/ContextMenus";

export default definePlugin({
    name: "ChannelDeck",
    description: 'Multi channel "deck" popout windows',
    authors: [Devs.Sqaaakoi],

    start() {
        if (!Vencord?.Api?.Styles?.createStyle) return showUnsupportedMessage();
        ChannelDeckStore.loadData();
    },

    stop() {
        ChannelDeckStore.unloadData();
    },

    contextMenus,

    ChannelDeckStore
});
