Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const StatusViewVariants = {
NODATA: 'no-data',
NOMATCHINGRESULTS: 'no-matching-results',
NOTAUTHORIZED: 'not-authorized',
ERROR: 'error',
};
/* eslint-disable react/forbid-foreign-prop-types */
const propTypes = {
/**
* An array of objects containing terra-button properties. A key attribute is required for each object.
* This array is used to render buttons in the bottom section.
* Example:`[{ text: 'Button 1', key: 1, size: 'medium', variant: 'action', onClick: onClickFunction}]`
*/
buttonAttrs: PropTypes.arrayOf(PropTypes.shape(Button.propTypes)),
/**
* Display a custom glyph. Overrides a variant's default glyph.
*/
customGlyph: PropTypes.node,
/**
* Aligns the component at the top of the container rather than "centered"
*/
isAlignedTop: PropTypes.bool,
/**
* Determines if the glyph should be displayed.
*/
isGlyphHidden: PropTypes.bool,