Skip to content

BlockSuite API Documentation / @blocksuite/blocks / groupsToActions

Function: groupsToActions()

groupsToActions<T>(groups, context): MenuItem[][]

Type Parameters

T

Parameters

groups: MenuItemGroup<T>[]

context: T

Returns

MenuItem[][]

Defined in

packages/affine/components/dist/toolbar/utils.d.ts:2