- {(props) => (
- {
- e.stopPropagation()
+ {(props) => {
+ const clonedChildren = cloneElement(children, {
+ onClick: function closeOnClickWithin() {
props.close()
- }}
- >
- {children}
-
- )}
+ },
+ })
+
+ return (
+
+ {clonedChildren}
+
+ )
+ }}
)
diff --git a/src/app/orbit/data/ambassadorsData.tsx b/src/app/orbit/data/ambassadorsData.tsx
index 20fa70b10..88a9d24b1 100644
--- a/src/app/orbit/data/ambassadorsData.tsx
+++ b/src/app/orbit/data/ambassadorsData.tsx
@@ -1,5 +1,3 @@
-import type { JSX } from 'react'
-
import type { StaticImageProps } from '@/types/imageType'
import { ExternalTextLink } from '@/components/TextLink/ExternalTextLink'