New components, convert hooks to components, bug fixes.
This commit is contained in:
13
components/Button.js
Normal file
13
components/Button.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import React from 'react';
|
||||
import classNames from 'classnames';
|
||||
import Icon from './Icon';
|
||||
import styles from './Button.module.css';
|
||||
|
||||
export default function Button({ icon, children, className, onClick }) {
|
||||
return (
|
||||
<button type="button" className={classNames(styles.button, className)} onClick={onClick}>
|
||||
{icon && <Icon icon={icon} />}
|
||||
{children}
|
||||
</button>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user