1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-06-14 13:55:27 -04:00
Files
jarv.is/components/TweetEmbed/TweetEmbed.tsx
T

22 lines
370 B
TypeScript

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