Created the Button.jsx component

This commit is contained in:
Mathias Wagner
2024-03-09 12:11:02 +01:00
parent 8a78412c03
commit 1891d07392

View File

@@ -0,0 +1,11 @@
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
import "./styles.sass";
export const Button = ({color, text, icon, onClick}) => {
return (
<button className={`btn btn-color-${color}`} onClick={onClick}>
<FontAwesomeIcon icon={icon} />
<h1>{text}</h1>
</button>
);
}