UNPKG

@talend/react-components

Version:
26 lines 838 B
import classNames from 'classnames'; import { propTypes } from '../Enumeration.propTypes'; import { DISPLAY_MODE_DEFAULT } from '../displayModes'; import theme from './EmptyListPlaceholder.module.scss'; import { jsx as _jsx } from "react/jsx-runtime"; export function EmptyListPlaceholder({ displayMode, t }) { return /*#__PURE__*/_jsx("p", { className: classNames({ [theme['tc-enumeration-hint']]: true, 'tc-enumeration-hint': true }), children: displayMode === DISPLAY_MODE_DEFAULT ? t('ENUMERATION_EMPTY_LIST', { defaultValue: 'The list is empty' }) : t('ENUMERATION_EMPTY_PLACEHOLDER_SEARCH', { defaultValue: 'No results' }) }); } EmptyListPlaceholder.propTypes = { displayMode: propTypes.displayMode, t: propTypes.t }; //# sourceMappingURL=EmptyListPlaceholder.component.js.map