import { useState } from "react"; import { TwitterTweetEmbed } from "react-twitter-embed"; import Loader from "../../../lib/loader"; export default function TweetEmbed(props: { tweetId: string }) { const { tweetId } = props; const [loading, setLoading] = useState(true); return (
{loading && ( )} { setLoading(false); }} />
); }