import React, { PureComponent } from 'react' import PropTypes from 'prop-types' import ModalThanks from '../molecules/ModalThanks' import styles from './PostActions.module.scss' import { ReactComponent as Twitter } from '../../images/twitter.svg' import { ReactComponent as Bitcoin } from '../../images/bitcoin.svg' import { ReactComponent as GitHub } from '../../images/github.svg' const ActionContent = ({ title, text, textLink }) => ( <>

{title}

{text} {textLink}

) ActionContent.propTypes = { title: PropTypes.string, text: PropTypes.string, textLink: PropTypes.string } const ActionTwitter = ({ url, slug }) => ( ) ActionTwitter.propTypes = { url: PropTypes.string.isRequired, slug: PropTypes.string.isRequired } const ActionCrypto = ({ toggleModal }) => ( ) ActionCrypto.propTypes = { toggleModal: PropTypes.func.isRequired } const ActionGitHub = ({ githubLink }) => ( ) ActionGitHub.propTypes = { githubLink: PropTypes.string.isRequired } export default class PostActions extends PureComponent { state = { showModal: false } static propTypes = { slug: PropTypes.string.isRequired, url: PropTypes.string.isRequired, githubLink: PropTypes.string.isRequired } toggleModal = () => { this.setState({ showModal: !this.state.showModal }) } render() { const { url, slug, githubLink } = this.props return ( ) } }