Created the Button.jsx
This commit is contained in:
parent
28e2b1c9b5
commit
1a0e767bb2
9
client/src/common/components/Button/Button.jsx
Normal file
9
client/src/common/components/Button/Button.jsx
Normal 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>
|
||||||
|
)
|
Reference in New Issue
Block a user