lbry-desktop/ui/component/common/form-components/submit.jsx
2019-11-11 13:27:29 -05:00

21 lines
454 B
JavaScript

// @flow
import * as React from 'react';
import Button from 'component/button';
type Props = {
label: string,
disabled: boolean,
};
export class Submit extends React.PureComponent<Props> {
static defaultProps = {
label: 'Submit',
};
render() {
const { label, disabled, ...otherProps } = this.props;
return <Button button="primary" type="submit" label={label} disabled={disabled} {...otherProps} />;
}
}
export default Submit;