aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/documentation/docs_logo.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/website/ts/components/documentation/docs_logo.tsx')
-rw-r--r--packages/website/ts/components/documentation/docs_logo.tsx22
1 files changed, 22 insertions, 0 deletions
diff --git a/packages/website/ts/components/documentation/docs_logo.tsx b/packages/website/ts/components/documentation/docs_logo.tsx
new file mode 100644
index 000000000..6f3c3c6e8
--- /dev/null
+++ b/packages/website/ts/components/documentation/docs_logo.tsx
@@ -0,0 +1,22 @@
+import { Link } from '@0xproject/react-shared';
+import * as React from 'react';
+import { WebsitePaths } from 'ts/types';
+
+export interface DocsLogoProps {
+ height: number;
+ containerStyle?: React.CSSProperties;
+}
+
+export const DocsLogo: React.StatelessComponent<DocsLogoProps> = props => {
+ return (
+ <div style={props.containerStyle}>
+ <Link to={WebsitePaths.Docs}>
+ <img src="/images/docs_logo.svg" height={props.height} />
+ </Link>
+ </div>
+ );
+};
+
+DocsLogo.defaultProps = {
+ containerStyle: {},
+};