UNPKG

thinkful-ui

Version:

Shared UI resources for Thinkful.

19 lines (13 loc) 360 B
import PropTypes from 'prop-types'; import React from 'react'; import BlocLogo from './BlocLogo'; import TFLogo from './TFLogo'; const Logo = ({ brand, ...props }) => brand === 'bloc' ? <BlocLogo {...props} /> : <TFLogo {...props} />; Logo.propTypes = { brand: PropTypes.string, }; Logo.defaultProps = { brand: 'thinkful', }; module.exports = Logo;