Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
WEIGHT_STYLES.emphasized
}" instead.`,
);
}
PropTypes.oneOf(Object.keys(WEIGHT_STYLES))(
props,
propName,
componentName,
...rest,
);
};
export const propTypes = {
children: PropTypes.node.isRequired,
emphasize: deprecated(PropTypes.bool, 'Use "weight" instead.'),
style: stylePropType,
textStyle: PropTypes.oneOf(TEXT_STYLES),
weight: weightPropType,
};
export const defaultProps = {
emphasize: null,
style: null,
textStyle: 'base',
weight: WEIGHT_STYLES.regular,
};