The compensation, fees, and expenses in any commitment proceeding shall be allowed and paid out of a fund designated for that purpose in the county treasury in the usual manner, if there is a sufficient amount in such fund to pay the same, and if not, it may be paid out of the general fund.
SDCL 27A-11A-23