| 1 |
import styles from '@patternfly/react-styles/css/components/Masthead/masthead'; |
| 2 |
import { css } from '@patternfly/react-styles'; |
| 3 |
|
| 4 |
export interface MastheadMainProps extends React.DetailedHTMLProps<React.HTMLProps<HTMLDivElement>, HTMLDivElement> { |
| 5 |
/** Content rendered inside of the masthead main block. */ |
| 6 |
children?: React.ReactNode; |
| 7 |
/** Additional classes added to the masthead main. */ |
| 8 |
className?: string; |
| 9 |
} |
| 10 |
|
| 11 |
export const MastheadMain: React.FunctionComponent<MastheadMainProps> = ({ |
| 12 |
children, |
| 13 |
className, |
| 14 |
...props |
| 15 |
}: MastheadMainProps) => ( |
| 16 |
<div className={css(styles.mastheadMain, className)} {...props}> |
| 17 |
{children} |
| 18 |
</div> |
| 19 |
); |
| 20 |
MastheadMain.displayName = 'MastheadMain'; |