/** * * TableRow * */ import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { upperFirst } from 'lodash'; import styles from './styles.scss'; function TableEmpty({ colspan, contentType, filters, search }) { let id, values; const model = upperFirst(contentType); if (search !== '') { id = 'withSearch', values = { contentType: model, search }; } else { id = filters.length > 0 ? 'withFilters' : 'withoutFilter'; values = { contentType: model || 'entry' }; } return (