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