feat: add new page button (#2417)

This commit is contained in:
Whitewater
2023-05-18 13:07:05 -07:00
committed by himself65
parent 341b18ded7
commit 48ef60cb0a
16 changed files with 378 additions and 116 deletions
@@ -10,7 +10,7 @@ import { useMemo } from 'react';
export function useBlockSuiteWorkspaceHelper(blockSuiteWorkspace: Workspace) {
return useMemo(
() => ({
createPage: (pageId: string): Page => {
createPage: (pageId?: string): Page => {
assertExists(blockSuiteWorkspace);
return blockSuiteWorkspace.createPage({ id: pageId });
},