jsketcher/modules/ui/components/ToolButton.jsx
2020-05-22 01:17:37 -07:00

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}/>;
}