import type { ReactNode } from 'react'; /** * Extracts plain text content from React nodes by recursively traversing through the elements * @param element - The React node to extract text from. Can be a string, ReactElement, or an array of React nodes * @returns A string containing all text content concatenated together * * @example * // Returns "Hello World" * getPlainTextContent(