diff --git a/src/components.tsx b/src/components.tsx index af79924..7824ea0 100644 --- a/src/components.tsx +++ b/src/components.tsx @@ -57,7 +57,7 @@ export type Content = )[]; }; -export const RenderRichText = ({ +export const RichText = ({ data, components, }: { @@ -112,7 +112,7 @@ export const RenderRichText = ({ let Element: keyof JSX.IntrinsicElements | ValueOf | null = null; let children: JSX.Element | string | null = item.content ? ( - + ) : null; let language = "plaintext"; switch (item.type) {