import {FormattedMessage} from 'react-intl'; import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; import Box from '../box/box.jsx'; import PeripheralTile from './peripheral-tile.jsx'; import Dots from './dots.jsx'; import radarIcon from './icons/searching.png'; import refreshIcon from './icons/refresh.svg'; import styles from './connection-modal.css'; const ScanningStep = props => ( {props.scanning ? ( props.peripheralList.length === 0 ? (
) : (
{props.peripheralList.map(peripheral => () )}
) ) : ( )}
); ScanningStep.propTypes = { connectionSmallIconURL: PropTypes.string, onConnecting: PropTypes.func, onRefresh: PropTypes.func, peripheralList: PropTypes.arrayOf(PropTypes.shape({ name: PropTypes.string, rssi: PropTypes.number, peripheralId: PropTypes.string })), scanning: PropTypes.bool.isRequired }; ScanningStep.defaultProps = { peripheralList: [], scanning: true }; export default ScanningStep;