MCPcopy Create free account
hub / github.com/splitbee/react-notion / getTextContent

Function getTextContent

src/utils.ts:6–8  ·  view source on GitHub ↗
(text: DecorationType[])

Source from the content-addressed store, hash-verified

4 classes.filter(a => !!a).join(" ");
5
6export const getTextContent = (text: DecorationType[]) => {
7 return text.reduce((prev, current) => prev + current[0], "");
8};
9
10const groupBlockContent = (blockMap: BlockMapType): string[][] => {
11 const output: string[][] = [];

Callers 2

renderComponentFunction · 0.90
PageIconFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected