@talend/react-components
Version:
Set of react components.
25 lines • 855 B
JavaScript
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { withTranslation } from 'react-i18next';
import getDefaultT from '../../translate';
import I18N_DOMAIN_COMPONENTS from '../../constants';
import theme from './NoRows.module.scss';
import { jsx as _jsx } from "react/jsx-runtime";
export function NoRowsComponent(props) {
return /*#__PURE__*/_jsx("span", {
className: classNames(theme['tc-virtualizedlist-no-result'], 'tc-virtualizedlist-no-result'),
role: "status",
"aria-live": "polite",
children: props.t('NO_RESULT_FOUND', {
defaultValue: 'No results found'
})
});
}
NoRowsComponent.propTypes = {
t: PropTypes.func
};
NoRowsComponent.defaultProps = {
t: getDefaultT()
};
export default withTranslation(I18N_DOMAIN_COMPONENTS)(NoRowsComponent);
//# sourceMappingURL=NoRows.component.js.map