diff --git a/frontend/src/lib/components/IframedToolbarBrowser/IframedToolbarBrowser.tsx b/frontend/src/lib/components/IframedToolbarBrowser/IframedToolbarBrowser.tsx new file mode 100644 index 0000000000000..3e34575b31c96 --- /dev/null +++ b/frontend/src/lib/components/IframedToolbarBrowser/IframedToolbarBrowser.tsx @@ -0,0 +1,75 @@ +import { LemonBanner, Spinner } from '@posthog/lemon-ui' +import { useActions, useValues } from 'kea' +import { useEffect } from 'react' +import useResizeObserver from 'use-resize-observer' + +import { ToolbarUserIntent } from '~/types' + +import { appEditorUrl } from '../AuthorizedUrlList/authorizedUrlListLogic' +import { iframedToolbarBrowserLogic } from './iframedToolbarBrowserLogic' + +function IframeErrorOverlay(): JSX.Element | null { + const logic = iframedToolbarBrowserLogic() + const { iframeBanner } = useValues(logic) + return iframeBanner ? ( +
{subtitle}
} +{subtitle}
+Creating dashboard...
) : ( <> -Select the events or website elements that represent important parts of your funnel.
-+ Not seeing the site you want? Install posthog-js or the HTML snippet + wherever you want to track events, then come back here. +
+ {snippetHosts.length > 0 ? ( ++ Hm, we're not finding any available hosts. Head back to the install + step to install posthog-js in your frontend. +
+ )} +