import { useCache } from '@proton/components' ; const CACHE_KEY = 'Signatures' ; export type SignatureCache = Map < string , any > ; export const useSignaturesCache = ( ) : SignatureCache => { const cache = useCache ( ) ; if ( ! cache . has ( CACHE_KEY ) ) { cache . set ( CACHE_KEY , new Map ( ) ) ; } return cache . get ( CACHE_KEY ) ; } ;