'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _constant = require('../../constant');

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/**
 * Created by baoyinghai on 5/31/17.
 */
exports.default = function (props) {
  var style = {
    height: _constant.BIT - 4 + 'px',
    width: _constant.BIT - 4 + 'px'
  };
  // if (props.isHit) {
  //   style.backgroundColor = 'red';
  // }
  return _react2.default.createElement('div', { 'data-index': props.index, style: style, className: 'bit' });
};