// Copyright 2015-2018 Parity Technologies (UK) Ltd. // This file is part of Parity. // // SPDX-License-Identifier: BSD-3-Clause import React from 'react'; import PropTypes from 'prop-types'; import { Image as SUIImage, Modal as SUIModal } from 'semantic-ui-react'; export const Modal = ({ buttons, children, description, fullscreen, icon, link, title, visible }) => (
{icon && ( )}

{title}

{description}

{link || null}

{buttons || null}
{children}
); Modal.propTypes = { buttons: PropTypes.node, children: PropTypes.node, description: PropTypes.oneOfType([PropTypes.node, PropTypes.string]), fullscreen: PropTypes.bool, icon: PropTypes.string, link: PropTypes.node, title: PropTypes.oneOfType([PropTypes.node, PropTypes.string]), visible: PropTypes.bool };