import { jsx as _jsx } from "react/jsx-runtime";
import { Markdown } from "./markdown";
export default function Text({ fontSize, registry, showEditedIndicator = false, value, }) {
    return (_jsx(Markdown, { className: showEditedIndicator
            ? "[&>p:nth-last-child(2)]:my-0 [&>p:nth-last-child(2)]:inline"
            : undefined, content: value, registry: registry, trailingContent: showEditedIndicator ? (_jsx("span", { className: "ms-1 text-xs text-muted-foreground", children: "(edited)" })) : undefined, variant: "compact", style: { fontSize: fontSize ?? "1rem" } }));
}
