import React from "react"
import Loading from "../components/base/Loading"
import Alert from "../components/base/Alert"
import Starting from "../components/base/Starting"
/**
* @deprecated
*/
export default function renderContents(requestHookResults, renderFunction) {
const { data, error, loading } = requestHookResults
if(loading) {
return
}
if(error) {
return {error.toString()}
}
if(data) {
return renderFunction(data)
}
return
}