From 189920eab99a731dd6b0880a99ec8cc911b64314 Mon Sep 17 00:00:00 2001
From: Fred Carlsen <fred@sjelfull.no>
Date: Fri, 30 Nov 2018 09:55:38 +0100
Subject: Added newsletter form to footer

---
 packages/website/ts/@next/components/icon.tsx | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 packages/website/ts/@next/components/icon.tsx

(limited to 'packages/website/ts/@next/components/icon.tsx')

diff --git a/packages/website/ts/@next/components/icon.tsx b/packages/website/ts/@next/components/icon.tsx
new file mode 100644
index 000000000..10916f28e
--- /dev/null
+++ b/packages/website/ts/@next/components/icon.tsx
@@ -0,0 +1,22 @@
+import * as React from 'react';
+import styled from 'styled-components';
+
+interface Props {
+    icon: any;
+    size?: any;
+}
+
+const StyledIcon = styled.div`
+    margin: auto;
+    flex-shrink: 0;
+
+    ${(props: Props) => props.size && `
+    width: ${props.size}; height: auto;
+    `}
+`;
+
+export const Icon: React.StatelessComponent = ({ icon, ...props }) => (
+    <>
+        <StyledIcon as={icon as 'svg'} {...props} />
+    </>
+);
-- 
cgit v1.2.3

