If the court enters an order pursuant to § 23A-27A-26.3 finding that the defendant was intellectually disabled at the time of the commission of the offense, the state may appeal as of right from the order. Upon entering such an order, the court shall afford the state a reasonable period of time, which may not be less than ten days, to determine whether to take an appeal from the order finding that the defendant was intellectually disabled. The taking of an appeal by the state stays the effectiveness of the court's order and any order fixing a date for trial.
SDCL 23A-27A-26.4