import React, { useState } from 'react'; import { Formik, Field, FieldArray, FormikActions, FormikProps, FieldArrayRenderProps } from 'formik'; import Recipe, { Ingredient, SubRecipe } from 'src/types/recipes'; import { Grid, Row, Cell } from '@material/react-layout-grid'; import './styles.scss'; import sample_image from 'sample.png'; type IngredientsListProps = { ingredients: SubRecipe[], } type RecipeFormProps = { initialValues: Recipe } const custom = (label: string, component = 'text') => ({field}: any) => ( { component === 'text' ? :