; (B) to compel compliance with such subsection; (C) to obtain damages, restitution, or other compensation on behalf of such residents; or (D) to such civil penalties and other relief as the court considers appropriate. (2) Rights of Consumer Product Safety Commission (A) Notice to Consumer Product Safety Commission (i) In general Except as provided in clause (iii), the attorney general of a State shall notify the Commission in writing that the attorney general intends to bring a civil action under paragraph (1) not later than 10 days before initiating the civil action. (ii) Contents The notification required by clause (i) with respect to a civil action shall include a copy of the complaint to be filed to initiate the civil action. (iii) Exception If it is not feasible for the attorney general of a State to provide the notification required by clause (i) before initiating a civil action under paragraph (1), the attorney general shall notify the Commission immediately upon instituting the civil action. (B) Intervention by Consumer Product Safety Commission The Commission may— (i) intervene in any civil action brought by the attorney general of a State under paragraph (1); and (ii) upon intervening— (I) be heard on all matters arising in the civil action