1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-08 23:07:32 +02:00
Files
joplin/packages/app-mobile/components/screens/ConfigScreen/plugins/utils/openWebsiteForPlugin.ts

10 lines
363 B
TypeScript

import { ItemEvent } from '@joplin/lib/components/shared/config/plugins/types';
import { Linking } from 'react-native';
import getPluginHelpUrl from '@joplin/lib/services/plugins/utils/getPluginHelpUrl';
const openWebsiteForPlugin = ({ item }: ItemEvent) => {
return Linking.openURL(getPluginHelpUrl(item.manifest.id));
};
export default openWebsiteForPlugin;