21 lines
413 B
TypeScript
21 lines
413 B
TypeScript
import React from "react";
|
|
import styles from "./Button.module.css";
|
|
|
|
|
|
interface ButtonProps {
|
|
label: string;
|
|
onClick?: () => void;
|
|
className?: string;
|
|
}
|
|
|
|
|
|
const Button: React.FC<ButtonProps> = ({ label, onClick, className }) => {
|
|
return (
|
|
<button className={`${styles.button} ${className || ""}`} onClick={onClick}>
|
|
{label}
|
|
</button>
|
|
);
|
|
};
|
|
|
|
|
|
export default Button; |