mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-11-03 02:33:49 +00:00
19 lines
542 B
TypeScript
19 lines
542 B
TypeScript
'use client';
|
|
|
|
import dynamic from 'next/dynamic';
|
|
|
|
import type { ClientBlockProps } from './ClientCodeBlock';
|
|
|
|
// Keeps `@gitbook/expr` out of the eager bundle; `ssr: true` keeps values in the HTML.
|
|
const ClientCodeBlockWithExpressions = dynamic(
|
|
() =>
|
|
import('./ClientCodeBlockWithExpressions').then(
|
|
(mod) => mod.ClientCodeBlockWithExpressions
|
|
),
|
|
{ ssr: true }
|
|
);
|
|
|
|
export function ClientCodeBlockWithExpressionsLazy(props: ClientBlockProps) {
|
|
return <ClientCodeBlockWithExpressions {...props} />;
|
|
}
|