import React from 'react';
import { Form, Field } from 'formik';
import Input from '../components/Input';


const ProductForm: React.FC = () => {
  return (
    <Form id="form">
      <div className="max-w-lg">
        <Field name="name" label="Название" as={Input} />
        <Field name="price" type="number" label="Цена ($)" as={Input} />
      </div>
    </Form>
  );
};

export default ProductForm;
