UNPKG

terra-application-header-layout

Version:

This component renders an application header layout. To be used with a layout.

24 lines (19 loc) 454 B
import React from 'react'; import PropTypes from 'prop-types'; import PlaceHolder from './Placeholder'; const propTypes = { size: PropTypes.string, }; const ExtensionsExample = ({ size }) => { let text = 'Logo'; if (size === 'tiny') { text = 'L'; } else if (size === 'small') { text = 'Log'; } return ( <PlaceHolder text={text} size={size} /> ); }; ExtensionsExample.propTypes = propTypes; export default ExtensionsExample;