Skip to content

Commit

Permalink
Add types JSDoc to component.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZebulanStanphill committed Jul 20, 2020
1 parent 6d899e4 commit 5c47241
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ import { MenuItem } from '@wordpress/components';
import { useDispatch, useSelect } from '@wordpress/data';
import { __ } from '@wordpress/i18n';

/**
* Menu controls to convert block(s) to reusable block or vice-versa.
*
* @param {Object} props Component props.
* @param {string[]} props.clientIds Client ids of selected blocks.
*
* @return {import('@wordpress/element').WPComponent} The menu controls or null.
*/
export default function ReusableBlockConvertButton( { clientIds } ) {
const { isReusable, isVisible } = useSelect(
( select ) => {
Expand Down

0 comments on commit 5c47241

Please sign in to comment.