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

export interface HintBodyProps {
  /** Content rendered inside the hint body. */
  children?: React.ReactNode;
  /** Additional classes applied to the hint body. */
  className?: string;
}

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