import { FormControl, FormLabel, Input, Textarea, Select, Checkbox, RadioGroup, Radio, Stack, Box, Heading, FormHelperText, Kbd, Image, Text, } from "@chakra-ui/react"; import { Controller } from "react-hook-form"; import { TiWarning } from "react-icons/ti"; import { motion } from "framer-motion"; import { AddIcon, CloseIcon } from "@chakra-ui/icons"; const FormField = ({ label, control, name, id, type = "text", options = [], errors, isRequired, rules, arabic, placeHolder, helperText, multiple, handleImageChange, selectedImageData, setSelectedImageData, removeImage, imageData , ...props }) => ( {label} { if (type === "select") { return ( ); } else if (type === "textarea") { return (