mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-21 07:01:19 -04:00
next-mdx-remote v4 (#737)
This commit is contained in:
17
components/TweetEmbed/TweetEmbed.tsx
Normal file
17
components/TweetEmbed/TweetEmbed.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import Tweet from "react-tweet-embed";
|
||||
|
||||
type Props = {
|
||||
id: string;
|
||||
};
|
||||
|
||||
const TweetEmbed = (props: Props) => (
|
||||
<Tweet
|
||||
id={props.id}
|
||||
options={{
|
||||
dnt: true,
|
||||
align: "center",
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
||||
export default TweetEmbed;
|
Reference in New Issue
Block a user