Created the Button.jsx

This commit is contained in:
Mathias Wagner 2023-05-30 21:31:17 +02:00
parent 28e2b1c9b5
commit 1a0e767bb2
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

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