27 lines
689 B
TypeScript
27 lines
689 B
TypeScript
import { useEffect } from "react";
|
|
|
|
const TwitterWidget = () => {
|
|
useEffect(() => {
|
|
if (typeof window !== "undefined") {
|
|
const script = document.createElement("script");
|
|
script.src = "https://embedsocial.com/cdn/ht.js";
|
|
script.async = true;
|
|
document.head.appendChild(script);
|
|
|
|
return () => {
|
|
document.head.removeChild(script);
|
|
};
|
|
}
|
|
}, []);
|
|
|
|
return (
|
|
// <div className="embedsocial-hashtag rounded-md" data-ref="c4857612a0e86456294a1a38046d17fc1040c003"></div>
|
|
<div
|
|
className="embedsocial-hashtag rounded-md"
|
|
data-ref="37343a1ea31c2d40735b094eb25741f6dac7e509"
|
|
></div>
|
|
);
|
|
};
|
|
|
|
export default TwitterWidget;
|