import { Button, FormHelperText, Grid, Typography } from "@material-ui/core"; import { Description as DescriptionIcon } from "@material-ui/icons"; import { DropzoneArea } from "material-ui-dropzone"; import { Actions } from "@/components"; import { Link as RouterLink, useHistory } from "react-router-dom"; import { route } from "@/routing"; import React, { useState } from "react"; import { Plan } from "@/data"; import { useTranslation } from "react-i18next"; import { InternshipPlanActions, useDispatch } from "@/state/actions"; export const PlanForm = () => { const { t } = useTranslation(); const [plan, setPlan] = useState({}); const dispatch = useDispatch(); const history = useHistory(); const handleSubmit = () => { dispatch({ type: InternshipPlanActions.Send, plan }); history.push(route("home")) } return { t('forms.plan.instructions') } { t('forms.plan.dropzone-help') } }