import type { Page } from '@blockeditor/store'; import { html } from 'lit'; import type { SurfaceBlockModel } from '../models.js'; export function getSurfaceBlock(page: Page) { return ( (page.getBlockByFlavour('affine:surface')[0] as SurfaceBlockModel) ?? null ); } export const noContentPlaceholder = html` `;