diff options
author | rohan09-raj <[email protected]> | 2022-08-14 00:19:58 +0530 |
---|---|---|
committer | rohan09-raj <[email protected]> | 2022-08-14 00:19:58 +0530 |
commit | 4e99bfe1878620769d48532b182692e51c7266ef (patch) | |
tree | c3b02c73fd5f9fba85461e00db9905ee1371a8a0 /admin/src/components/Button/Button.jsx | |
parent | 3673947d4905948de2e466a813019b1de9629bd2 (diff) |
admin panel and api integration
Diffstat (limited to 'admin/src/components/Button/Button.jsx')
-rw-r--r-- | admin/src/components/Button/Button.jsx | 20 |
1 files changed, 20 insertions, 0 deletions
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; |