{ProjectBackgroundGradients.map((gradient) => (
))}
{imageCoverUrl && (
/* TODO: wrap in button */
)}
{imageCoverUrl && (
)}
{defaultValue && (
)}
>
);
},
);
BackgroundEditStep.propTypes = {
defaultValue: PropTypes.object, // eslint-disable-line react/forbid-prop-types
imageCoverUrl: PropTypes.string,
isImageUpdating: PropTypes.bool.isRequired,
onUpdate: PropTypes.func.isRequired,
onImageUpdate: PropTypes.func.isRequired,
onImageDelete: PropTypes.func.isRequired,
onBack: PropTypes.func.isRequired,
};
BackgroundEditStep.defaultProps = {
defaultValue: undefined,
imageCoverUrl: undefined,
};
export default BackgroundEditStep;