Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 3694 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
3719 stevensc 1
import React from 'react';
2
import { useSelector } from 'react-redux';
3
import { IconButton } from '@mui/material';
4
import SendRounded from '@mui/icons-material/SendRounded';
5
 
6
import { Form, FormInput } from '../form';
7
 
8
export function CommentForm({ onSubmit = () => {} }) {
9
  const labels = useSelector(({ intl }) => intl.labels);
10
 
11
  return (
12
    <Form onSubmit={onSubmit}>
13
      <FormInput
14
        name='comment'
15
        placeholder={labels.write_a_comment}
16
        rules={{ required: 'Este campo es requerido' }}
17
        autoComplete='off'
18
        endAdornment={
19
          <IconButton type='submit' sx={{ padding: 0.4 }}>
20
            <SendRounded />
21
          </IconButton>
22
        }
23
      />
24
    </Form>
25
  );
26
}