import * as React from 'react';
import styles from '@breakaway/react-styles/css/components/Masthead/masthead';
import { css } from '@breakaway/react-styles';

export interface MastheadContentProps extends React.DetailedHTMLProps<React.HTMLProps<HTMLDivElement>, HTMLDivElement> {
  /** Content rendered inside of the masthead content block. */
  children?: React.ReactNode;
  /** Additional classes added to the masthead content. */
  className?: string;
}

export const MastheadContent: React.FunctionComponent<MastheadContentProps> = ({
  children,
  className,
  ...props
}: MastheadContentProps) => (
  <div className={css(styles.mastheadContent, className)} {...props}>
    {children}
  </div>
);
MastheadContent.displayName = 'MastheadContent';
