mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-12 00:09:10 +05:30
23 lines
565 B
JavaScript
23 lines
565 B
JavaScript
|
// @flow
|
||
|
import React from 'react';
|
||
|
import { connect } from 'react-redux';
|
||
|
import { create as createPopup } from 'components/ui/popup/actions';
|
||
|
import ContactForm from './ContactForm';
|
||
|
|
||
|
function ContactLink({createContactPopup, ...props}: {
|
||
|
createContactPopup: () => void,
|
||
|
props: Object
|
||
|
}) {
|
||
|
return (
|
||
|
<a href="#" onClick={(event) => {
|
||
|
event.preventDefault();
|
||
|
|
||
|
createContactPopup();
|
||
|
}} {...props} />
|
||
|
);
|
||
|
}
|
||
|
|
||
|
export default connect(null, {
|
||
|
createContactPopup: () => createPopup(ContactForm),
|
||
|
})(ContactLink);
|