diff --git a/frontend/src/pages/devices/DeviceEditMobiFlight.tsx b/frontend/src/pages/devices/DeviceEditMobiFlight.tsx new file mode 100644 index 00000000..06e30e29 --- /dev/null +++ b/frontend/src/pages/devices/DeviceEditMobiFlight.tsx @@ -0,0 +1,28 @@ +import DeviceIcon from "@/components/mobiflight/icons/DeviceIcon"; +import { DeviceElementType, IDeviceItem } from "@/types"; +import { IconTrash } from "@tabler/icons-react"; + +export type MobiFlightDeviceEditPanelProps = { + device: IDeviceItem; +}; + +export const MobiFlightDeviceEditPanel = ( + props: MobiFlightDeviceEditPanelProps +) => { + const device = props.device; + return ( +
+ {(device?.Elements ?? []).map((element) => { + return ( +
+ +
{element.Name}
+
+
+ ); + })} +
+ ); +}; + +export default MobiFlightDeviceEditPanel; diff --git a/frontend/src/pages/devices/DeviceSelection.tsx b/frontend/src/pages/devices/DeviceSelection.tsx new file mode 100644 index 00000000..e5d5e5d5 --- /dev/null +++ b/frontend/src/pages/devices/DeviceSelection.tsx @@ -0,0 +1,24 @@ +import DeviceIcon from "@/components/mobiflight/icons/DeviceIcon"; +import { DeviceElementTypes } from "@/types/deviceElements"; + +const DeviceSelection = () => { + const availableDeviceTypes = DeviceElementTypes; + + return ( +
+ {availableDeviceTypes.map((deviceType) => { + return ( +
+ +
{deviceType}
+
+ ); + })} +
+ ); +}; + +export default DeviceSelection;