import useFuego from '../../hooks/useFuego' import { DocumentModel } from '../../FuegoQuery/types' import { ReactElement } from 'react' import { GetFuegoProps } from './types' function GetFuego( props: GetFuegoProps ): ReactElement> { const { handleData, handleLoading, handleError, children, ...config } = props const fuego = useFuego(config, { handleData, handleError, handleLoading }) return children(fuego) } export default GetFuego