kopia lustrzana https://github.com/mifi/lossless-cut
11 wiersze
369 B
TypeScript
11 wiersze
369 B
TypeScript
import { ButtonHTMLAttributes, memo } from 'react';
|
|
|
|
import styles from './Button.module.css';
|
|
|
|
const Button = memo(({ type = 'button', ...props }: ButtonHTMLAttributes<HTMLButtonElement>) => (
|
|
// eslint-disable-next-line react/jsx-props-no-spreading, react/button-has-type
|
|
<button className={styles['button']} type={type} {...props} />
|
|
));
|
|
|
|
export default Button;
|