- {/* Toolbar */}
+
+ {/* Header */}
+
+
+ {/* Main content area */}
+
+
+
+
+
+
+
+
+ {/* Add Device Dialog */}
+
!open && setIsAddingDevice(false)}
+ >
+
+
+
+
+ Add Device
+
+
+
+
+
+
+ {/* Edit Device Dialog */}
!open && setEditingDevice(null)}
>
-
-
@@ -220,42 +238,6 @@ function AudioDeviceArrangerApp() {
-
- {/* Main content area */}
-
- {/* Header */}
-
-
- Audio Hardware Configurator
-
-
-
-
- {/* React Flow */}
-
-
-
-
-
-
-
-
)
}
diff --git a/src/components/AddDeviceForm.tsx b/src/components/AddDeviceForm.tsx
index a0f6f2d..ccce557 100644
--- a/src/components/AddDeviceForm.tsx
+++ b/src/components/AddDeviceForm.tsx
@@ -1,3 +1,5 @@
+// src/components/AddDeviceForm.tsx
+
import React, { useState } from 'react'
import { Device, Port } from '../types/devices'
import * as Form from '@radix-ui/react-form'
@@ -18,10 +20,8 @@ const AddDeviceForm: React.FC
= ({ onAddDevice }) => {
name: name,
type: type,
gridSize,
- // width,
- // height,
- inputs: [],
- outputs: [],
+ inputs,
+ outputs,
position: { x: 0, y: 0 },
})
}
@@ -93,14 +93,14 @@ const AddDeviceForm: React.FC = ({ onAddDevice }) => {
@@ -135,11 +135,11 @@ const AddDeviceForm: React.FC = ({ onAddDevice }) => {
-