diff --git a/src/components/FormField.jsx b/src/components/FormField.jsx index 4629f57..2b9ba26 100644 --- a/src/components/FormField.jsx +++ b/src/components/FormField.jsx @@ -1,7 +1,47 @@ import React from "react"; -const FormField = () => { - return
FormField
; +const FormField = ({ + labelName, + type, + name, + placeholder, + value, + handleChange, + isSurpriseMe, + handleSurpriseMe, +}) => { + return ( +
+
+ + {isSurpriseMe && ( + + )} +
+ + +
+ ); }; export default FormField;