diff options
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; |