import type { Tweet } from "react-tweet/api"; import { type TwitterComponents, TweetContainer, TweetHeader, TweetInReplyTo, TweetBody, TweetMedia, TweetInfo, QuotedTweet, enrichTweet, } from "react-tweet"; type Props = { tweet: Tweet; components?: TwitterComponents; }; export const MyTweet = ({ tweet: t, components }: Props) => { const tweet = enrichTweet(t); return ( {tweet.in_reply_to_status_id_str && } {tweet.mediaDetails?.length ? ( ) : null} {tweet.quoted_tweet && } ); };