function buildContentHeaders(headersDefinitions, schema) {
	return headersDefinitions.map(({ header, id }, index) => {
		let type;
		if (schema) {
			type = schema.get(header);
		}
		if (!type) {
			return (
				<th key={index} id={id}>
					{header}
				</th>
			);
		}
		return (
			<th key={index} id={id}>
				<div>{header}</div>
				<div className={classNames('text-right')}>{type}</div>
			</th>
		);
	});
}
/**
 * We construct the jsx dispayed for the header.
 * If there is a type we add it.
 * @param {array} headersDefinitions
 * @param {object} schema
 */
We construct the jsx dispayed for the header.
If there is a type we add it.
@param {array} headersDefinitions
@param {object} schema
We construct the jsx dispayed for the header . If there is a type we add it . @param { array } headersDefinitions @param { object } schema
function buildContentHeaders(headersDefinitions, schema) {
	return headersDefinitions.map(({ header, id }, index) => {
		let type;
		if (schema) {
			type = schema.get(header);
		}
		if (!type) {
			return (
				<th key={index} id={id}>
					{header}
				</th>
			);
		}
		return (
			<th key={index} id={id}>
				<div>{header}</div>
				<div className={classNames('text-right')}>{type}</div>
			</th>
		);
	});
}
function buildContentHeaders ( headersDefinitions , schema ) { return headersDefinitions . map ( ( { header , id } , index ) => { let type ; if ( schema ) { type = schema . get ( header ) ; } if ( ! type ) { return ( < th key = { index } id = { id } > { header } < / th > ) ; } return ( < th key = { index } id = { id } > < div > { header } < / div > < div className = { classNames ( 'text-right' ) } > { type } < / div > < / th > ) ; } ) ; }
We construct the jsx dispayed for the header.
We construct the jsx dispayed for the header .