UNPKG

@uimkit/uikit-react

Version:

<img style="width:64px" src="https://mgmt.uimkit.chat/media/img/avatar.png"/>

29 lines (26 loc) 1.16 kB
import React__default from 'react'; import { useTranslationContext } from '../../context/TranslationContext.js'; import '../../context/UIKitContext.js'; import '../../context/ComponentContext.js'; import '../../context/ChatActionContext.js'; import '../../context/MessageInputContext.js'; import '../../context/UIMessageContext.js'; import '../../context/ChatStateContext.js'; function UnMemoizedEmptyStateIndicator(props) { var listType = props.listType; var t = useTranslationContext('EmptyStateIndicator').t; if (listType === 'conversation') { return React__default.createElement("p", { role: "listitem" }, t('You have no conversations currently')); } if (listType === 'contact') { return React__default.createElement("p", { role: "listitem" }, t('You have no contacts currently')); } if (listType === 'message') return null; if (listType === 'chat') return null; return React__default.createElement("p", null, "No items exist"); } var EmptyStateIndicator = React__default.memo(UnMemoizedEmptyStateIndicator); export { EmptyStateIndicator }; //# sourceMappingURL=EmptyStateIndicator.js.map