mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-06 16:33:15 +01:00
7 lines
303 B
JavaScript
7 lines
303 B
JavaScript
import React from 'react';
|
|
import ls from './ToolButton.less';
|
|
import cx from 'classnames';
|
|
|
|
export default function ToolButton({pressed, type, className, ...props}) {
|
|
return <button tabIndex="-1" className={cx(ls.root, ls[type], pressed && ls.pressed, className, 'small-typography')} {...props}/>;
|
|
}
|