You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
651 B
30 lines
651 B
/* eslint react/prop-types: 0 */
|
|
import React from "react";
|
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
import { faFacebookSquare } from "@fortawesome/free-brands-svg-icons";
|
|
|
|
const Twitter = props => {
|
|
const handleClick = () => {
|
|
const url =
|
|
"https://twitter.com/intent/tweet?text=" +
|
|
|
|
props.title +
|
|
"&t=" +
|
|
props.url;
|
|
window.open(
|
|
url,
|
|
"",
|
|
"menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=500,width=700"
|
|
);
|
|
};
|
|
return (
|
|
|
|
<img src="/twitter.svg" onClick={handleClick} className="cursorPointer mr-2" />
|
|
|
|
);
|
|
};
|
|
|
|
export default Twitter;
|
|
|
|
//i
|