(a) A consent to adoption may not be withdrawn after the entry of a decree of adoption.
(b) A consent to adoption may be withdrawn before the entry of a decree of adoption, within 10 days after the consent is given, by delivering written notice to the person obtaining the consent, or after the 10-day period, if the court finds, after notice and opportunity to be heard is afforded to petitioner, the person seeking the withdrawal, and the agency placing the child for adoption, that the withdrawal is in the best interest of the person to be adopted and the court orders the withdrawal.