mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-12 19:03:47 +00:00
15 lines
403 B
TypeScript
15 lines
403 B
TypeScript
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>
|
|
);
|
|
}
|