{React.Children.map(children, (child) => {
if (
React.isValidElement(child) &&
!(child.type as unknown as { isFormElement?: boolean })
.isFormElement
) {
return {child};
}
return child;
})}
);
},
{ isFormElement: true }
);
/**
*
*/
export type FieldSetProps = {
label?: string;
} & HTMLAttributes