MCPcopy
hub / github.com/splitbee/react-notion / classNames

Function classNames

src/utils.ts:3–4  ·  view source on GitHub ↗
(...classes: Array<string | undefined | false>)

Source from the content-addressed store, hash-verified

1import { DecorationType, BlockMapType, MapImageUrl } from "./types";
2
3export const classNames = (...classes: Array<string | undefined | false>) =>
4 classes.filter(a => !!a).join(" ");
5
6export const getTextContent = (text: DecorationType[]) => {
7 return text.reduce((prev, current) => prev + current[0], "");

Callers 2

renderComponentFunction · 0.90
PageIconFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected