import React from 'react';
import Table from 'react-bootstrap/lib/Table'
// Displays an array of TextItem as a table
export default class TextItemTable extends React.Component {
static propTypes = {
textItems: React.PropTypes.array.isRequired,
showWhitespaces: React.PropTypes.bool
};
render() {
const {showWhitespaces, textItems} = this.props;
const tableHeader =
const textItemRows = textItems.map((textItem, i) =>
#
Text
X
Y
Width
Height
Font
{ textItem.text }) : (textItem.text) }