mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-09 15:54:47 -07:00
18 lines
438 B
TypeScript
18 lines
438 B
TypeScript
// eslint-disable-next-line
|
|
import React from "react";
|
|
import { connect } from 'react-redux';
|
|
import { Form, reduxForm } from 'redux-form'
|
|
|
|
import { InputAction } from 'components';
|
|
|
|
const SayMessage = ({ handleSubmit }) => (
|
|
<Form onSubmit={handleSubmit}>
|
|
<InputAction action="Send" label="Chat" name="message" />
|
|
</Form>
|
|
);
|
|
|
|
const propsMap = {
|
|
form: 'sayMessage'
|
|
};
|
|
|
|
export default connect()(reduxForm(propsMap)(SayMessage));
|