import { useMutation } from '../../hooks' ; import { MutationProps } from './Mutation.types' ; export const Mutation = < T = any , R = any , S = any > ( { actionCreator , children } ) => { const response = useMutation < T , R , S > ( actionCreator ) ; return children ( response ) ; } ;