1
0

Created the Button.jsx

This commit is contained in:
Mathias Wagner 2023-11-18 19:32:11 +01:00
parent db13ab9f02
commit d86b3bfdee
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

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