import React from 'react'; import { Button } from '../Button'; import { DropDown, DropDownItemProps } from '../DropDown'; export interface SocialShareProps { title: string; link: string; } export const SocialShare = ({ title, link }: SocialShareProps) => { const ShareItem: DropDownItemProps[] = [ { href: `https://twitter.com/intent/tweet?text=${title}&url=${link}`, title: (
Twitter
), }, { href: `https://www.linkedin.com/sharing/share-offsite/?url=${link}`, title: (
LinkedIn
), }, { href: `http://www.facebook.com/sharer.php?u=${link}&t=${title}`, title: (
Facebook
), }, { href: `mailto:?subject=${title}&body=${link}`, title: (
Email
), }, ]; return (