This commit is contained in:
Malai Raja
2023-11-27 17:09:27 +05:30
commit 7113ac0681
223 changed files with 56261 additions and 0 deletions

39
src/utils/getShadow.js Normal file
View File

@@ -0,0 +1,39 @@
import PropTypes from 'prop-types';
// ==============================|| CUSTOM FUNCTION - COLOR SHADOWS ||============================== //
const getShadow = (theme, shadow) => {
switch (shadow) {
case 'secondary':
return theme.customShadows.secondary;
case 'error':
return theme.customShadows.error;
case 'warning':
return theme.customShadows.warning;
case 'info':
return theme.customShadows.info;
case 'success':
return theme.customShadows.success;
case 'primaryButton':
return theme.customShadows.primaryButton;
case 'secondaryButton':
return theme.customShadows.secondaryButton;
case 'errorButton':
return theme.customShadows.errorButton;
case 'warningButton':
return theme.customShadows.warningButton;
case 'infoButton':
return theme.customShadows.infoButton;
case 'successButton':
return theme.customShadows.successButton;
default:
return theme.customShadows.primary;
}
};
getShadow.propTypes = {
theme: PropTypes.object,
shadow: PropTypes.string
};
export default getShadow;