summaryrefslogtreecommitdiff
path: root/src/index.tsx
blob: bbe4cd366e2cacfcb1ff98ac6c2de56e99a5c9c2 (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/Content";

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");
    }
  };
});