-
{child}
+ const rootClassnames = [baseProps.className, testUtilStyles.root];
+
+ const controls = (
+
+ {flattenedChildren.map((child, index) => {
+ const key = child && typeof child === 'object' ? (child as Record<'key', unknown>).key : undefined;
+ const position: GroupedControlPosition =
+ controlCount === 1 ? 'only' : index === 0 ? 'first' : index === controlCount - 1 ? 'last' : 'middle';
+ return (
+
+
+ {child}
+
+
+ );
+ })}
+
+ );
+
+ const controlsWithAction = actionButton ? (
+
+ {controls}
+
+
- );
- });
+
+ ) : (
+ controls
+ );
if (inlineLabelText) {
return (
-
-