19 lines
430 B
JavaScript
19 lines
430 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import { Button } from '@freecodecamp/react-bootstrap';
|
|
|
|
function BlockSaveButton(props) {
|
|
return (
|
|
<Button block={true} bsStyle='primary' {...props} type='submit'>
|
|
{props.children || 'Save'}
|
|
</Button>
|
|
);
|
|
}
|
|
|
|
BlockSaveButton.displayName = 'BlockSaveButton';
|
|
BlockSaveButton.propTypes = {
|
|
children: PropTypes.any
|
|
};
|
|
|
|
export default BlockSaveButton;
|