/** @format */ /** * External dependencies */ import { Component } from '@wordpress/element'; import { range } from 'lodash'; import PropTypes from 'prop-types'; /** * Internal dependencies */ import Table from './table'; /** * `TablePlaceholder` behaves like `Table` but displays placeholder boxes instead of data. This can be used while loading. */ class TablePlaceholder extends Component { render() { const { caption, headers, numberOfRows } = this.props; const rows = range( numberOfRows ).map( () => headers.map( () => ( { display: } ) ) ); return (