Merge branch 'INDA-330-pii-update' into 'main'
[ProtonMail-WebClient.git] / applications / pass-extension / src / lib / hooks / useEndpointMessage.ts
blob29c6809c56af80b09131a97e2cbc105e4740ec7d
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), []);
9 };