MCPcopy Create free account
hub / github.com/bernaferrari/FigmaToCode / formatMultipleJSXArray

Function formatMultipleJSXArray

packages/backend/src/common/parseJSX.ts:28–34  ·  view source on GitHub ↗
(
  styles: Record<string, string | number>,
  isJsx: boolean,
)

Source from the content-addressed store, hash-verified

26};
27
28export const formatMultipleJSXArray = (
29 styles: Record<string, string | number>,
30 isJsx: boolean,
31): string[] =>
32 Object.entries(styles)
33 .filter(([key, value]) => value !== "")
34 .map(([key, value]) => formatWithJSX(key, isJsx, value));
35
36export const formatMultipleJSX = (
37 styles: Record<string, string | number | null>,

Callers 1

htmlAutoLayoutPropsFunction · 0.90

Calls 1

formatWithJSXFunction · 0.85

Tested by

no test coverage detected