import { useIframeParentInterface } from "../utils"; import { Block } from "./Block"; import { ErrorBoundary } from "./ErrorBoundary"; const PageWrapper = () => { const [bundleProps, setProps] = useIframeParentInterface("*"); if (bundleProps.bundle === null) return Block not found; if (!bundleProps.bundle || !bundleProps.props) return Loading...; return ( ); }; export default PageWrapper; const Message = ({ children }: { children: React.ReactNode }) => (
{children}
);