From a52dd5d7acd06d92e27c8a96fe010963ec5b8275 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Tue, 21 Dec 2021 16:42:56 +0100 Subject: chore: add a sharing component --- src/config/sharing.ts | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 src/config/sharing.ts (limited to 'src/config/sharing.ts') diff --git a/src/config/sharing.ts b/src/config/sharing.ts new file mode 100644 index 0000000..580145e --- /dev/null +++ b/src/config/sharing.ts @@ -0,0 +1,72 @@ +import { t } from '@lingui/macro'; + +const sharingMedia = [ + { + id: 'diaspora', + name: 'Diaspora', + parameters: { + content: '', + image: '', + title: 'title', + url: 'url', + }, + url: 'https://share.diasporafoundation.org/', + }, + { + id: 'facebook', + name: 'Facebook', + parameters: { + content: '', + image: '', + title: '', + url: 'u', + }, + url: 'https://www.facebook.com/sharer/sharer.php', + }, + { + id: 'linkedin', + name: 'LinkedIn', + parameters: { + content: '', + image: '', + title: '', + url: 'url', + }, + url: 'https://www.linkedin.com/sharing/share-offsite/', + }, + { + id: 'twitter', + name: 'Twitter', + parameters: { + content: '', + image: '', + title: 'text', + url: 'url', + }, + url: 'https://twitter.com/intent/tweet', + }, + { + id: 'journal-du-hacker', + name: 'Journal du Hacker', + parameters: { + content: '', + image: '', + title: 'title', + url: 'url', + }, + url: 'https://www.journalduhacker.net/stories/new', + }, + { + id: 'email', + name: t`Email`, + parameters: { + content: 'body', + image: '', + title: 'subject', + url: '', + }, + url: 'mailto:', + }, +]; + +export default sharingMedia; -- cgit v1.2.3