Created the Button.jsx
This commit is contained in:
parent
db13ab9f02
commit
d86b3bfdee
11
client/src/common/components/Button/Button.jsx
Normal file
11
client/src/common/components/Button/Button.jsx
Normal 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>
|
||||
)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user