Skip to content

The open alternative to Salesforce, designed for AI.

257 B
Raw Blame
export const extractCssText = (children: unknown): string => {
  if (typeof children === 'string') {
    return children;
  }

  if (!Array.isArray(children)) {
    return '';
  }

  return children.filter((child) => typeof child === 'string').join('');
};