import { useQuery } from '../../hooks' ; import { QueryProps } from './Query.types' ; export const Query = < T = any , R = any > ( { action , children , initFetch = true } ) => { const response = useQuery < T , R > ( action , initFetch ) ; return children ( response ) ; } ;