// 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 = ({ children, description, fullscreen, link, icon, buttons, title, visible }) => (
{icon && ( )}

{title}

{description}

{link || null}

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