(1) For the services required to be performed under ss. 392.55, 392.56, 392.57, and 392.62, compensation shall be paid as follows:
(a) The sheriff shall receive the same fees and mileage as are prescribed for like services in criminal cases.
(b) The counsel appointed by the court to represent an indigent person shall receive compensation as provided in s. 27.5304.
(2) All fees, mileage, and charges provided to the sheriff pursuant to paragraph (1)(a) shall be taxed by the court as costs in each proceeding and shall be paid by the board of county commissioners. All compensation provided to court-appointed counsel pursuant to paragraph (1)(b) shall be taxed by the court as costs and paid by the state.