mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
20 lines
429 B
React
20 lines
429 B
React
import classNames from 'classnames';
|
|
import PropTypes from 'prop-types';
|
|
|
|
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,
|
|
};
|