diff --git a/src/containers/Connections/Devices/index.tsx b/src/containers/Connections/Devices/index.tsx new file mode 100644 index 0000000..d228676 --- /dev/null +++ b/src/containers/Connections/Devices/index.tsx @@ -0,0 +1,35 @@ +import React from 'react' +import classnames from 'classnames' +import { BaseComponentProps } from '@models' +import './style.scss' + +interface DevicesProps extends BaseComponentProps { + devices: Array<{ label: string, number: number }> + selected: string + onChange?: (label: string) => void +} + +export function Devices (props: DevicesProps) { + const { className, style } = props + const classname = classnames('connections-devices', className) + function handleSelected (label: string) { + props.onChange?.(label) + } + + return ( +