@hc.ds/mobile
Version:
Healthy Church Design System - HC Mobile
34 lines • 712 B
JavaScript
/**
* Button utils
*
* These utils are used to determine the text style and button type based on the theme prop that matches with AntDesign Button component.
*/
import { Colors } from '../Colors';
export function getTextStyle(theme) {
switch (theme) {
case 'ghost':
return {
color: Colors.primary[100]
};
case 'light':
return {
color: Colors.text
};
default:
return {
color: Colors.white
};
}
}
export function getButtonType(theme) {
switch (theme) {
case 'success':
case 'danger':
return 'primary';
case 'light':
return 'ghost';
default:
return theme;
}
}
//# sourceMappingURL=utils.js.map