1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-21 09:38:01 +02:00
joplin/packages/app-mobile/components/plugins/dialogs/hooks/useViewInfos.ts

11 lines
321 B
TypeScript
Raw Normal View History

import { PluginStates, utils as pluginUtils } from '@joplin/lib/services/plugins/reducer';
import { useMemo } from 'react';
const useViewInfos = (pluginStates: PluginStates) => {
return useMemo(() => {
return pluginUtils.viewInfosByType(pluginStates, 'webview');
}, [pluginStates]);
};
export default useViewInfos;