You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
429 B
JavaScript
20 lines
429 B
JavaScript
import PropTypes from 'prop-types';
|
|
import classNames from 'classnames';
|
|
|
|
export default function PanelButtonComponent(props) {
|
|
const {
|
|
className,
|
|
children,
|
|
...rest
|
|
} = props;
|
|
const cn = classNames(className, 'scratchpad__panel-button');
|
|
return (
|
|
<button {...rest} className={cn}>{children}</button>
|
|
);
|
|
}
|
|
|
|
PanelButtonComponent.propTypes = {
|
|
className: PropTypes.string,
|
|
children: PropTypes.node,
|
|
};
|