import { jsx as _jsx } from "@emotion/react/jsx-runtime";
import ReactMarkdown from 'react-markdown';
import { Type } from '@sinclair/typebox';
export const TextPropertySchema = Type.Object({
    raw: Type.String(),
    format: Type.KeyOf(Type.Object({
        plain: Type.String(),
        md: Type.String(),
    })),
});
const Text = ({ value, style }) => {
    if (value.format === 'md') {
        return _jsx(ReactMarkdown, { children: value.raw }, void 0);
    }
    return _jsx("span", Object.assign({ style: style }, { children: value.raw }), void 0);
};
export default Text;
//# sourceMappingURL=Text.js.map