Icon picker component (#11310)

* icon picker component

* keep box the same size when filtering icons
This commit is contained in:
Josh Hawkins
2024-05-09 08:22:48 -05:00
committed by GitHub
parent 50ee447e52
commit f8523d9ddf
6 changed files with 233 additions and 85 deletions

View File

@@ -1,3 +1,4 @@
import { IconName } from "@/components/icons/IconPicker";
import { LivePlayerMode } from "./live";
export interface UiConfig {
@@ -222,11 +223,9 @@ export interface CameraConfig {
};
}
export const GROUP_ICONS = ["car", "cat", "dog", "leaf"] as const;
export type CameraGroupConfig = {
cameras: string[];
icon: (typeof GROUP_ICONS)[number];
icon: IconName;
order: number;
};