Initial commit

This commit is contained in:
Maksim Eltyshev
2019-08-31 04:07:25 +05:00
commit 5ffef61fe7
613 changed files with 91659 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Button, Popup as SemanticUIPopup } from 'semantic-ui-react';
import styles from './PopupHeader.module.css';
const PopupHeader = React.memo(({ children, onBack }) => (
<SemanticUIPopup.Header className={styles.wrapper}>
{onBack && <Button icon="angle left" onClick={onBack} className={styles.backButton} />}
<div className={styles.content}>{children}</div>
</SemanticUIPopup.Header>
));
PopupHeader.propTypes = {
children: PropTypes.node.isRequired,
onBack: PropTypes.func,
};
PopupHeader.defaultProps = {
onBack: undefined,
};
export default PopupHeader;