import React from 'react' import PropTypes from 'prop-types' import Isvg from 'react-inlinesvg' import x from 'icons/x.svg' import Pay from './Pay' import Request from './Request' import styles from './Form.scss' const FORM_TYPES = { PAY_FORM: Pay, REQUEST_FORM: Request } const Form = ({ formType, formProps, closeForm }) => { if (!formType) { return null } const FormComponent = FORM_TYPES[formType] return (