// @flow import type { Node } from 'react'; import * as ICONS from 'constants/icons'; import classnames from 'classnames'; import React from 'react'; import Button from 'component/button'; type Props = { message: string | Node, action?: Node, closeTitle?: string, actionText?: string, href?: string, type?: string, inline?: boolean, relative?: boolean, onClick?: () => void, onClose?: () => void, }; export default function Nag(props: Props) { const { message, action: customAction, closeTitle, actionText, href, onClick, onClose, type, inline, relative, } = props; const buttonProps = onClick ? { onClick } : href ? { href } : null; return (