Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

SelectableMarkdownText.ios.tsx

21 lines692 Bytes

1import {
2 SelectableMarkdownText as T3SelectableMarkdownText,
3 type SelectableMarkdownTextProps,
4} from "@t3tools/mobile-markdown-text/renderer";
5​
6import { highlightCodeSnippet } from "../features/review/shikiReviewHighlighter";
7​
8type MobileSelectableMarkdownTextProps = Omit<SelectableMarkdownTextProps, "highlightCode">;
9​
10export type {
11 NativeMarkdownTextStyle,
12 SelectableMarkdownSkill,
13} from "@t3tools/mobile-markdown-text/types";
14​
15export function hasNativeSelectableMarkdownText(): boolean {
16 return true;
18​
19export function SelectableMarkdownText(props: MobileSelectableMarkdownTextProps) {
20 return <T3SelectableMarkdownText {...props} highlightCode={highlightCodeSnippet} />;