/**
 * Created by baoyinghai on 5/31/17.
 */
import React from 'react';
import { BIT } from '../../constant';

export default props => {
  const style = {
    height: (BIT - 4) + 'px',
    width: (BIT - 4) + 'px',
  };
  // if (props.isHit) {
  //   style.backgroundColor = 'red';
  // }
  return (
    <div data-index={props.index} style={style} className="bit" />
  );
};