1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-21 07:01:19 -04:00

all components should accept additional classnames

This commit is contained in:
2022-01-20 12:06:05 -05:00
parent 2162e9d563
commit 7e37adabc1
22 changed files with 150 additions and 86 deletions

View File

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