import { createContext, type ReactNode, useContext } from "react"; export type MarkdownTextSurface = "prose" | "table-cell"; const MarkdownTextSurfaceContext = createContext("prose"); export function MarkdownTableCellText({ children }: { children: ReactNode }) { return {children}; } export function useMarkdownTextSurface(): MarkdownTextSurface { return useContext(MarkdownTextSurfaceContext); } export function iosMarkdownTextIsSelectable(surface: MarkdownTextSurface): boolean { return surface !== "table-cell"; }