UNPKG

ntms

Version:

A dead simple way to add i18n to your Next.js app using the Notion API and Deepl

7 lines (5 loc) 193 B
import { RichText } from "../types"; const toPlainText = (rich_text: RichText[]) => { return rich_text.map(({ plain_text }: RichText) => plain_text).join(""); }; export default toPlainText;