1 import { useMemo } from 'react';
3 import { usePassCore } from '@proton/pass/components/Core/PassCoreProvider';
4 import { resolveMessageFactory } from '@proton/pass/lib/extension/message/send-message';
6 export const useEndpointMessage = () => {
7 const { endpoint } = usePassCore();
8 return useMemo(() => resolveMessageFactory(endpoint), []);