| 1 |
import { |
| 2 |
Masthead, |
| 3 |
MastheadMain, |
| 4 |
MastheadToggle, |
| 5 |
MastheadBrand, |
| 6 |
MastheadLogo, |
| 7 |
MastheadContent, |
| 8 |
Button, |
| 9 |
Brand |
| 10 |
} from '@patternfly/react-core'; |
| 11 |
import pfIcon from '../../assets/PF-HorizontalLogo-Color.svg'; |
| 12 |
|
| 13 |
export const MastheadLogoCustomComponent: React.FunctionComponent = () => ( |
| 14 |
<Masthead id="icon-router-link"> |
| 15 |
<MastheadMain> |
| 16 |
<MastheadToggle> |
| 17 |
<Button variant="plain" isHamburger onClick={() => {}} aria-label="Global navigation" /> |
| 18 |
</MastheadToggle> |
| 19 |
<MastheadBrand> |
| 20 |
<MastheadLogo component={(props) => <a {...props} href="#" />}> |
| 21 |
<Brand src={pfIcon} alt="PatternFly" heights={{ default: '36px' }} /> |
| 22 |
</MastheadLogo> |
| 23 |
</MastheadBrand> |
| 24 |
</MastheadMain> |
| 25 |
<MastheadContent> |
| 26 |
<span>Content</span> |
| 27 |
</MastheadContent> |
| 28 |
</Masthead> |
| 29 |
); |