Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/packages / features / Header / MiddleBar / FavoriteIconWithCount / FavoriteIconWithCount.js
Size: Mime:
import * as tslib_1 from "tslib";
import * as React from 'react';
import { observer } from 'xmobx/mobx-react';
import { favoritesContainer } from '@skava/packages/features/Lists/state';
import { StyledFavoritesCount, StyledFavoritesLink, StyledHeartIcon } from './styled';
let FavoriteIconWithCount = class FavoriteIconWithCount extends React.Component {
    render() {
        const favoritesCount = favoritesContainer.favoritesListItemsCount;
        const favoritesLink = '/favorites';
        return (React.createElement(StyledFavoritesLink, { href: favoritesLink },
            React.createElement(StyledFavoritesCount, null, favoritesCount > 0 ? favoritesCount : ''),
            React.createElement(StyledHeartIcon, { type: 'heart', isSelected: true, favoritesCount: favoritesCount })));
    }
};
FavoriteIconWithCount = tslib_1.__decorate([
    observer
], FavoriteIconWithCount);
export { FavoriteIconWithCount };
//# sourceMappingURL=FavoriteIconWithCount.js.map