@udus/notion-renderer
Version:

10 lines • 554 B
TypeScript
import type { EquationRichTextItemObject } from "./equation.js";
import type { MentionRichTextItemObject } from "./mention.js";
import type { TextRichTextItemObject } from "./text.js";
import type { ComponentType } from "react";
export type RichTextItemType = TextRichTextItemObject | EquationRichTextItemObject | MentionRichTextItemObject;
export type RichTextItemProps<T extends RichTextItemType = RichTextItemType> = {
richText: T;
};
export type RichTextItemComponent = ComponentType<RichTextItemProps>;
//# sourceMappingURL=richTextItem.d.ts.map