aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dev-tools-pages/ts/components
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-10-10 20:44:50 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-10-10 22:20:14 +0800
commit6c0d31738062b113bd34b5438a2e3c8bfbfb385b (patch)
treefe51ced18f360fbb1f7f639d9a786a431d191deb /packages/dev-tools-pages/ts/components
parentafb34da72978b5272cfb5a235498e483c72556bc (diff)
downloaddexon-0x-contracts-6c0d31738062b113bd34b5438a2e3c8bfbfb385b.tar.gz
dexon-0x-contracts-6c0d31738062b113bd34b5438a2e3c8bfbfb385b.tar.zst
dexon-0x-contracts-6c0d31738062b113bd34b5438a2e3c8bfbfb385b.zip
Initial project scaffolding
Diffstat (limited to 'packages/dev-tools-pages/ts/components')
-rw-r--r--packages/dev-tools-pages/ts/components/meta_tags.tsx25
1 files changed, 25 insertions, 0 deletions
diff --git a/packages/dev-tools-pages/ts/components/meta_tags.tsx b/packages/dev-tools-pages/ts/components/meta_tags.tsx
new file mode 100644
index 000000000..f6c43d23f
--- /dev/null
+++ b/packages/dev-tools-pages/ts/components/meta_tags.tsx
@@ -0,0 +1,25 @@
+import * as React from 'react';
+import { Helmet } from 'react-helmet';
+
+export interface MetaTagsProps {
+ title: string;
+ description: string;
+ imgSrc?: string;
+}
+
+export const MetaTags: React.StatelessComponent<MetaTagsProps> = ({ title, description, imgSrc }) => (
+ <Helmet>
+ <title>{title}</title>
+ <meta name="description" content={description} />
+ <meta property="og:title" content={title} />
+ <meta property="og:description" content={description} />
+ <meta property="og:type" content="website" />
+ <meta property="og:image" content={imgSrc} />
+ <meta name="twitter:site" content="@0xproject" />
+ <meta name="twitter:image" content={imgSrc} />
+ </Helmet>
+);
+
+MetaTags.defaultProps = {
+ imgSrc: '/images/og_image.png',
+};