import * as React from 'react'; import styles from '@patternfly/react-styles/css/components/Masthead/masthead'; import { css } from '@patternfly/react-styles'; export interface MastheadBrandProps extends React.DetailedHTMLProps, HTMLAnchorElement> { /** Content rendered inside of the masthead brand. */ children?: React.ReactNode; /** Additional classes added to the masthead brand. */ className?: string; /** Component type of the masthead brand. */ component?: React.ElementType | React.ComponentType; } export const MastheadBrand: React.FunctionComponent = ({ children, className, component, ...props }: MastheadBrandProps) => { let Component = component as any; if (!component) { if (props?.href !== undefined) { Component = 'a'; } else { Component = 'span'; } } return ( {children} ); }; MastheadBrand.displayName = 'MastheadBrand';