summaryrefslogtreecommitdiff
path: root/admin/src/components/Button/Button.jsx
blob: ed8bc20dc2c85be8e132ba9c3f16153a9a7fc62d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;