mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-05 07:54:38 +00:00
feat(plugin): render Markdown content with host UI (#7579)
* feat(plugin): expose Markdown content component * docs(plugin): translate Markdown component reference
This commit is contained in:
@@ -8,7 +8,7 @@ import {
|
||||
} from "@getpaseo/plugin/client";
|
||||
import { useCallback, useMemo } from "react";
|
||||
import { Pressable, Text, View } from "react-native";
|
||||
import { ExternalLink } from "@getpaseo/plugin/client/ui";
|
||||
import { ExternalLink, Markdown } from "@getpaseo/plugin/client/ui";
|
||||
import { incrementRpc } from "../shared/increment";
|
||||
|
||||
export function contributeClient(client: PluginClientContext) {
|
||||
@@ -107,7 +107,7 @@ export function ExamplePanel({
|
||||
|
||||
return (
|
||||
<View style={styles.screen}>
|
||||
<Text style={styles.title}>Workspace plugin panel</Text>
|
||||
<Markdown>{"## Workspace plugin panel\n\nCall a **daemon RPC** from this panel."}</Markdown>
|
||||
<ExternalLink href="https://paseo.sh/docs/plugins">Plugin documentation</ExternalLink>
|
||||
{openBrowser ? (
|
||||
<Pressable accessibilityRole="button" onPress={handleOpenBrowser} style={styles.button}>
|
||||
|
||||
Reference in New Issue
Block a user