import { Box } from '@mui/material' import { StyledButton } from './StyledButton' import PropTypes from 'prop-types' export const SalesforceAuthButton = ({ componentCredential, handleSalesforceOAuth, baseURL }) => { if (!componentCredential || componentCredential.name !== 'salesforceOAuth') return null return ( } sx={{ backgroundColor: '#00A1E0', color: 'white', '&:hover': { backgroundColor: '#0074A3' }, '&:disabled': { backgroundColor: 'lightgray', color: 'gray' } }} > Authorize with Salesforce ) } SalesforceAuthButton.propTypes = { componentCredential: PropTypes.object, credentialData: PropTypes.object, handleSalesforceOAuth: PropTypes.func, baseURL: PropTypes.string }