Retornar componente do gancho do React

 const Modal = useMemo(() => {
      return ({ children }) => getOpenModal && (
      <Modal
        isOpen={getOpenModal}
Yellowed Yacare