import PropTypes from "prop-types"; import { AnimatePresence } from "motion/react"; import clsx from "clsx"; import FieldError from "./FieldError"; import { useTranslation } from "react-i18next"; function FormSelect({ props, valid = true, className = "", options }) { const { t } = useTranslation(); return (
{!valid && }
); } FormSelect.propTypes = { props: PropTypes.object, className: PropTypes.string, valid: PropTypes.bool, options: PropTypes.arrayOf( PropTypes.shape({ value: PropTypes.string.isRequired, label: PropTypes.string.isRequired, }) ).isRequired, }; export default FormSelect;