Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 608x 6x 1x | import { ReactElement, Suspense } from "react";
import { Loading } from "client/components/Loading";
import { lazyWithRetry } from "client/utils/lazyWithRetry";
// Only mounted once a collapsed container is opened, so the notice text is
// fetched when someone asks to read it rather than on every load
const PrivacyNoticeMarkdown = lazyWithRetry(
"PrivacyNotice",
async () => await import("client/markdown/PrivacyNotice.mdx"),
);
export const PrivacyNoticeText = (): ReactElement => (
<Suspense fallback={<Loading />}>
<PrivacyNoticeMarkdown />
</Suspense>
);
|