A. If the court finds that a juvenile has been adjudicated incompetent to stand trial within the past year, the court may hold a hearing to dismiss any misdemeanor charge against the juvenile if the juvenile continues to be incompetent to stand trial. The court shall give ten days’ notice of the hearing to the prosecutor and the juvenile. On receipt of this notice, the prosecutor shall notify the victim of the hearing.
B. If a misdemeanor charge is dismissed pursuant to this section, the court may order the initiation of civil commitment proceedings or may appoint a guardian ad litem to proceed with a dependency investigation.