import { FunctionComponentWithChildren } from '@ballerine/ui'; import { ComponentProps, useState } from 'react'; import { Portal } from '@/common/components/atoms/Portal/Portal'; export const RenderChildrenInIFrame: FunctionComponentWithChildren> = ({ children, ...props }) => { const [contentRef, setContentRef] = useState(null); const mountNode = contentRef?.contentWindow?.document?.body; return ( ); };