You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-03 23:50:33 +02:00
11 lines
382 B
TypeScript
11 lines
382 B
TypeScript
import { PluginStates } from '../reducer';
|
|
import getActivePluginEditorViews from './getActivePluginEditorViews';
|
|
|
|
export default (plugins: PluginStates, windowId: string) => {
|
|
const visibleViews = getActivePluginEditorViews(plugins, windowId, { mustBeVisible: true });
|
|
if (!visibleViews.length) {
|
|
return { editorView: null, editorPlugin: null };
|
|
}
|
|
return visibleViews[0];
|
|
};
|