You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +02:00
Chore: Refactor mobile plugin logic into locations more consistent with other parts of the app (#10636)
This commit is contained in:
@ -0,0 +1,10 @@
|
||||
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;
|
Reference in New Issue
Block a user