mirror of
https://github.com/pawelmalak/flame.git
synced 2026-03-06 04:23:11 +08:00
18 lines
356 B
TypeScript
18 lines
356 B
TypeScript
import { ReactNode } from 'react';
|
|
import classes from './Button.module.css';
|
|
|
|
interface Props {
|
|
children: ReactNode;
|
|
click?: any;
|
|
}
|
|
|
|
export const Button = (props: Props): JSX.Element => {
|
|
const { children, click } = props;
|
|
|
|
return (
|
|
<button className={classes.Button} onClick={click ? click : () => {}}>
|
|
{children}
|
|
</button>
|
|
);
|
|
};
|