Slide 100
Slide 100 text
const MEDIUMS = {
twitter: {
icon: ,
title: 'Share on Twitter',
share: shareOnTwitter,
},
facebook: {
icon: ,
title: 'Share on Facebook',
share: shareOnFacebook,
},
linkedin: {
icon: ,
title: 'Share on LinkedIn',
share: shareOnLinkedIn,
},
};
function ShareButton({ sharable, medium }) {
const medium = MEDIUMS[medium];
return (
medium.share(sharable)}