import type { TeactNode } from '../../../lib/teact/teact'; import { memo } from '../../../lib/teact/teact'; import { LOCAL_TGS_URLS } from '../../common/helpers/animatedAssets'; import AnimatedIconWithPreview from '../../common/AnimatedIconWithPreview'; import Link from '../../ui/Link'; import styles from './GiftEmptyState.module.scss'; type OwnProps = { description: TeactNode; linkText?: TeactNode; onLinkClick?: NoneToVoidFunction; }; const GiftEmptyState = ({ description, linkText, onLinkClick }: OwnProps) => { return (
{description}
{Boolean(linkText && onLinkClick) && ( {linkText} )}
); }; export default memo(GiftEmptyState);