text: import twitter from "twitter-text";
  
  export const getTweetHtml = (tweet) => {
    const tweetHtml = twitter.autoLink(twitter.htmlEscape(tweet), {
      usernameIncludeSymbol: true,
      targetBlank: true,
    });
  
    const links = twitter.extractUrls(tweet);
    let lastLink = "";
    if (links && links.length) {
      lastLink = links.slice(-1)[0];
    }
  
    return { tweetHtml, lastLink };
  };
  