diff --git a/web/src/components/filter/CameraGroupSelector.tsx b/web/src/components/filter/CameraGroupSelector.tsx
index 38a246c00..fe0ff2fbc 100644
--- a/web/src/components/filter/CameraGroupSelector.tsx
+++ b/web/src/components/filter/CameraGroupSelector.tsx
@@ -360,6 +360,65 @@ function NewGroupDialog({
);
}
+type EditGroupDialogProps = {
+ open: boolean;
+ setOpen: (open: boolean) => void;
+ currentGroups: [string, CameraGroupConfig][];
+ activeGroup?: string;
+};
+export function EditGroupDialog({
+ open,
+ setOpen,
+ currentGroups,
+ activeGroup,
+}: EditGroupDialogProps) {
+ // editing group and state
+
+ const editingGroup = useMemo(() => {
+ if (currentGroups && activeGroup) {
+ return currentGroups.find(([groupName]) => groupName === activeGroup);
+ } else {
+ return undefined;
+ }
+ }, [currentGroups, activeGroup]);
+
+ const [isLoading, setIsLoading] = useState(false);
+
+ return (
+ <>
+