2 * Copyright 2015-present Greg Hurrell. All rights reserved.
3 * Licensed under the terms of the MIT license.
10 import React from 'react';
11 import {ValuePropType} from './Field.react';
12 import convert from './convert';
14 export default class App extends React.Component {
20 const {value} = this.props;
21 const bits = value ? convert(value.value, value.base, 16).length * 8 : 0;
22 const bytes = bits / 8;
25 {bytes} byte{bytes === 1 ? '' : 's'},