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