/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at . */ import PropTypes from "prop-types"; import React from "react"; import Transition from "react-transition-group/Transition"; const classnames = require("devtools/client/shared/classnames.js"); import "./Modal.css"; export const transitionTimeout = 50; export class Modal extends React.Component { static get propTypes() { return { additionalClass: PropTypes.string, children: PropTypes.node.isRequired, handleClose: PropTypes.func.isRequired, status: PropTypes.string.isRequired, }; } onClick = e => { e.stopPropagation(); }; render() { const { additionalClass, children, handleClose, status } = this.props; return (
{children}
); } } Modal.contextTypes = { shortcuts: PropTypes.object, }; export default function Slide({ in: inProp, children, additionalClass, handleClose, }) { return ( {status => ( {children} )} ); } Slide.propTypes = { additionalClass: PropTypes.string, children: PropTypes.node.isRequired, handleClose: PropTypes.func.isRequired, in: PropTypes.bool.isRequired, };