From 4e99bfe1878620769d48532b182692e51c7266ef Mon Sep 17 00:00:00 2001
From: rohan09-raj <rajrohan1914@gmail.com>
Date: Sun, 14 Aug 2022 00:19:58 +0530
Subject: admin panel and api integration

---
 admin/src/components/Button/Button.jsx | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 admin/src/components/Button/Button.jsx

(limited to 'admin/src/components/Button/Button.jsx')

diff --git a/admin/src/components/Button/Button.jsx b/admin/src/components/Button/Button.jsx
new file mode 100644
index 0000000..ed8bc20
--- /dev/null
+++ b/admin/src/components/Button/Button.jsx
@@ -0,0 +1,20 @@
+import React from 'react';
+
+import styles from './Button.module.css';
+
+const Button = ({title, onClick, color}) => {
+  return (
+    <>
+      <button
+        className={
+          color === 'green' ? styles.button__green : styles.button__red
+        }
+        onClick={onClick}
+      >
+        {title}
+      </button>
+    </>
+  );
+};
+
+export default Button;
-- 
cgit 

