import React from 'react' ; import BinaryStringView from '../../core/components/BinaryString' ; import formatter from '../../core/formatter' ; import { IpAddress } from '../models' ; function IpAddressBinaryString ( { ip } ) { return < React . Fragment > < BinaryStringView binaryString = { formatter . emBin ( ip . firstByte ) } /> < span className = "soft" > . < /span> < BinaryStringView binaryString = { formatter . emBin ( ip . secondByte ) } / > < span className = "soft" > . < /span> < BinaryStringView binaryString = { formatter . emBin ( ip . thirdByte ) } / > < span className = "soft" > . < /span> < BinaryStringView binaryString = { formatter . emBin ( ip . fourthByte ) } / > < /React.Fragment>; } export default IpAddressBinaryString ;