File size: 410 Bytes
e8eb17b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import React from 'react';
import './Button.css';

interface ButtonProps {
  label: string;
  onClick?: () => void;
  variant?: 'primary' | 'secondary';
}

export const Button: React.FC<ButtonProps> = ({ 

  label, 

  onClick, 

  variant = 'primary' 

}) => {
  return (
    <button 

      className={`btn btn-${variant}`}

      onClick={onClick}

    >

      {label}

    </button>
  );
};