Fix icon types

This commit is contained in:
Sacha Weatherstone
2023-01-26 15:24:08 +10:00
parent c502f7393d
commit 3b0db3ef38
4 changed files with 184 additions and 141 deletions
+2 -2
View File
@@ -45,12 +45,12 @@ import { ThemeController } from "../generic/ThemeController.js";
export interface Group {
name: string;
icon: (props: React.ComponentProps<"svg">) => JSX.Element;
icon: React.ComponentType<React.SVGProps<SVGSVGElement>>;
commands: Command[];
}
export interface Command {
name: string;
icon: (props: React.ComponentProps<"svg">) => JSX.Element;
icon: React.ComponentType<React.SVGProps<SVGSVGElement>>;
action?: () => void;
subItems?: SubItem[];
tags?: string[];