import type { FC } from '../../lib/teact/teact'; import { memo } from '../../lib/teact/teact'; import buildClassName from '../../util/buildClassName'; import renderText from './helpers/renderText'; import useOldLang from '../../hooks/useOldLang'; import useShowTransitionDeprecated from '../../hooks/useShowTransitionDeprecated'; import './NothingFound.scss'; interface OwnProps { text?: string; description?: string; } const DEFAULT_TEXT = 'Nothing found.'; const NothingFound: FC = ({ text = DEFAULT_TEXT, description }) => { const lang = useOldLang(); const { transitionClassNames } = useShowTransitionDeprecated(true); return (
{text} {description &&

{renderText(lang(description), ['br'])}

}
); }; export default memo(NothingFound);