// @flow import * as React from 'react'; import classNames from 'classnames'; import type { InlineNoticeType } from '../../common/types/core'; type Props = { children: React.Node, className?: string, title?: React.Node, type?: InlineNoticeType, }; const InlineNotice = ({ children, className = '', title, type = 'warning', ...rest }: Props) => (
{title ? {title} : null}
{children}
); export default InlineNotice;