import { useEffect, useState } from "react"; import { Select } from "antd"; import { useTranslation } from "react-i18next"; const ContractStatusComponent = ({ value, onChange, ref }) => { const [option, setOption] = useState(value); const { t } = useTranslation(); useEffect(() => { if (value !== option && onChange) { onChange(option); } }, [value, option, onChange]); return (