From 4af6a41a8bfc9d5f8b90d3aa8bc96a804607dba0 Mon Sep 17 00:00:00 2001
From: Eug-VS <eug-vs@keemail.me>
Date: Sat, 8 Feb 2020 15:36:32 +0300
Subject: feat: add Button component

---
 src/lib/Button/Button.tsx | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 src/lib/Button/Button.tsx

(limited to 'src/lib/Button/Button.tsx')

diff --git a/src/lib/Button/Button.tsx b/src/lib/Button/Button.tsx
new file mode 100644
index 0000000..6bc0f98
--- /dev/null
+++ b/src/lib/Button/Button.tsx
@@ -0,0 +1,18 @@
+import React from 'react';
+import { Button as MaterialButton } from '@material-ui/core';
+
+
+interface PropTypes {
+  color: 'primary' | 'secondary';
+}
+
+const Button: React.FC<PropTypes> = ({ color, children }) => (
+  <MaterialButton
+    variant="contained"
+    color={color}
+    children={children}
+  />
+);
+
+
+export default Button;
-- 
cgit v1.2.3

