summaryrefslogtreecommitdiff
path: root/src/index.tsx
blob: 070e8538b84039588c7dfe26dc8da1f46e5404e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { staticClasses } from "@decky/ui";
import { definePlugin } from "@decky/api";
import { GiPlasticDuck } from "react-icons/gi";
import { Content } from "./components";

export default definePlugin(() => {
  console.log("decky-lsfg-vk plugin initializing");

  return {
    // The name shown in various decky menus
    name: "decky-lsfg-vk",
    // The element displayed at the top of your plugin's menu
    titleView: <div className={staticClasses.Title}>decky-lsfg-vk</div>,
    // Always render to retain state when panel is toggled
    alwaysRender: true,
    // The content of your plugin's menu
    content: <Content />,
    // The icon displayed in the plugin list
    icon: <GiPlasticDuck />,
    // The function triggered when your plugin unloads
    onDismount() {
      console.log("decky-lsfg-vk unloading");
    }
  };
});