diff --git a/packages/edit-site/src/components/dataviews/item-actions.js b/packages/edit-site/src/components/dataviews/item-actions.js index 2063c79ea8c663..de5f4ada4a8896 100644 --- a/packages/edit-site/src/components/dataviews/item-actions.js +++ b/packages/edit-site/src/components/dataviews/item-actions.js @@ -2,18 +2,28 @@ * WordPress dependencies */ import { - DropdownMenu, - MenuGroup, - MenuItem, Button, Modal, __experimentalHStack as HStack, + privateApis as componentsPrivateApis, } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import { useMemo, useState } from '@wordpress/element'; import { moreVertical } from '@wordpress/icons'; -export function PrimaryActionTrigger( { action, onClick } ) { +/** + * Internal dependencies + */ +import { unlock } from '../../lock-unlock'; + +const { + DropdownMenuV2Ariakit: DropdownMenu, + DropdownMenuGroupV2Ariakit: DropdownMenuGroup, + DropdownMenuItemV2Ariakit: DropdownMenuItem, + DropdownMenuItemLabelV2Ariakit: DropdownMenuItemLabel, +} = unlock( componentsPrivateApis ); + +function ButtonTrigger( { action, onClick } ) { return (