react-icons/bs#BsArrowReturnRight JavaScript Examples

The following examples show how to use react-icons/bs#BsArrowReturnRight. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RedditCard.js    From hackertab.dev with Apache License 2.0 5 votes vote down vote up
PostItem = ({ item, index, analyticsTag }) => {
    const fullUrl = `https://www.reddit.com${item.permalink}`
    const { listingMode } = useContext(PreferencesContext)

    return (
      <CardItemWithActions
        source={"reddit"}
        index={index}
        key={index}
        item={{ ...item, url: fullUrl }}
        cardItem={
          <>
            <CardLink link={fullUrl} analyticsSource={analyticsTag}>
                { listingMode === "compact" && 
                    <div className="counterWrapper">
                        <VscTriangleUp/>
                        <span className="value">{item.score}</span>
                    </div>
                }
                
                <div className="subTitle">
                    {item.link_flair_text && <PostFlair {...item} />}
                    {item.title}
                </div>
            </CardLink>

            <div className="rowDetails">
              {listingMode === "normal" && (
                <>
                  <span className="rowItem redditRowItem">
                    <GoPrimitiveDot className="rowItemIcon" /> {item.score}{" "}
                    points
                  </span>
                  <span className="rowItem">
                    <MdAccessTime className="rowItemIcon" />{" "}
                    {format(new Date(item.created_utc * 1000))}
                  </span>
                  <span className="rowItem">
                    <BiCommentDetail className="rowItemIcon" />{" "}
                    {item.num_comments} comments
                  </span>
                  <span className="rowItem">
                    <BsArrowReturnRight className="rowItemIcon" />{" "}
                    {`r/${item.subreddit}`}
                  </span>
                </>
              ) }
            </div>
          </>
        }
      />
    );
}