A board of county commissioners may provide and maintain at public expense temporary care, shelter, or detention facilities, sight and sound separated from adult prisoners, where children coming within the provisions of this chapter or chapter 26-8A, 26-8B, 26-8C, or §§ 26-11A-13 and 26-11A-14, may, if necessary or appropriate, be placed for temporary care, temporary custody, shelter, or detention as designated by the court, or temporary detention or shelter by the Department of Corrections. Sections 26-11A-19 and 26-7A-94 governs the costs of custodial care of children.
SDCL 26-7A-23