1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-27 05:18:28 -04:00
jarv.is/components/TweetEmbed/TweetEmbed.tsx

22 lines
338 B
TypeScript

import Tweet from "react-tweet-embed";
type Props = {
id: string;
className?: string;
options?: object;
};
const TweetEmbed = ({ id, className, options }: Props) => (
<Tweet
className={className}
id={id}
options={{
dnt: true,
align: "center",
...options,
}}
/>
);
export default TweetEmbed;