refactor: use native button

This commit is contained in:
Carlos Valente
2025-02-22 08:51:46 +01:00
committed by Carlos Valente
parent f76c0d1a6d
commit ba74622569
3 changed files with 44 additions and 5 deletions
@@ -0,0 +1,14 @@
import { ButtonHTMLAttributes } from 'react';
import { cx } from '../../utils/styleUtils';
import style from './IconButton.module.scss';
export default function IconButton(props: ButtonHTMLAttributes<HTMLButtonElement>) {
const { className, children, ...buttonProps } = props;
return (
<button className={cx([style.subtle, className])} {...buttonProps}>
{children}
</button>
);
}