/**
 * @description 请添加Cell组件的描述和注释!!!
 *
 * @date 创建时间 2022-10-19 16:09
 * @author 开发人员
 */

import React, { memo } from "react";

interface CellProps {
  /**
   *选中当前的行/交易对
   */
  onClick?: (event?: React.MouseEvent<HTMLElement>) => void;
  className?: string;
  children?: React.ReactNode | string;
}

const Cell: React.FC<CellProps> = props => {
  const { className, onClick, children } = props;

  return (
    <div className={className} onClick={onClick}>
      {children}
    </div>
  );
};

export default memo(Cell);
