feat: add new page button (#2417)
This commit is contained in:
1 parent
11370bc07e
commit
530dd5ff7f
16 files changed
+378
-116
No files matched your search
@@ -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 });
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user