mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-07 17:04:58 +01:00
7 lines
283 B
JavaScript
7 lines
283 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)} {...props}/>;
|
|
}
|