; or (B) 5 years after the date on which the violation that is the basis for such liability occurs. (c) Actions by States (1) In general In any case in which the attorney general of a State, or an official or agency of a State, has reason to believe that an interest of the residents of such State has been or is threatened or adversely affected by an act or practice in violation of this Act, the State, as parens patriae, may bring a civil action on behalf of the residents of the State in an appropriate State court or an appropriate district court of the United States to— (A) enjoin such act or practice; (B) enforce compliance with this Act; (C) obtain damages, restitution, or other compensation on behalf of residents of the State; or (D) obtain such other legal and equitable relief as the court may consider to be appropriate. (2) Notice Before filing an action under this subsection, the attorney general, official, or agency of the State involved shall provide to the Federal Trade Commission a written notice of such action and a copy of the complaint for such action. If the attorney general, official, or agency determines that it is not feasible to provide the notice described in this paragraph before the filing of the action, the attorney general, official, or agency shall provide written notice of the action and a copy of the complaint to the Federal Trade Commission immediately upon the filing of the action. (3) Authority of Federal Trade Commission On receiving notice under paragraph (2) of an action under this subsection, the Federal Trade Commission shall have the right— (A) to intervene in the action; (B) upon so intervening, to be heard on all matters arising therein