aboutsummaryrefslogtreecommitdiff
path: root/src/demo/Button/Button.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-10-10 13:39:08 +0300
committereug-vs <eug-vs@keemail.me>2020-10-10 13:39:08 +0300
commitbfa9f7b9158faa3a453eaabf5be3c96b6c8a18b1 (patch)
tree1f8b2b987b24ecacb9b1fe62ce57d1f0ac6f6230 /src/demo/Button/Button.tsx
parentc33c6a521325adafb250124d2814423b3a4187b5 (diff)
downloadreact-benzin-bfa9f7b9158faa3a453eaabf5be3c96b6c8a18b1.tar.gz
refactor: remove demo components from lib
Diffstat (limited to 'src/demo/Button/Button.tsx')
-rw-r--r--src/demo/Button/Button.tsx18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/demo/Button/Button.tsx b/src/demo/Button/Button.tsx
new file mode 100644
index 0000000..6bc0f98
--- /dev/null
+++ b/src/demo/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;