import IconFile from '@geist-ui/icons/file'; import { DocumentBlockContentRef } from '@gitbook/api'; import { resolveContentRef } from '@/lib/references'; import { tcls } from '@/lib/tailwind'; import { BlockProps } from './Block'; export async function BlockContentRef(props: BlockProps) { const { block, context, style } = props; const resolved = await resolveContentRef(block.data.ref, context); if (!resolved) { return null; } return (
{resolved.text}
); }